Class ListResourcesParams
Parameters for the Unity.ListResources tool. Lists project URIs (unity://path/...) under a folder (default: Assets).
Implements
Inherited Members
Namespace: Unity.AI.MCP.Editor.ToolRegistry.Parameters
Assembly: Unity.AI.MCP.Editor.dll
Syntax
public record ListResourcesParams : IEquatable<ListResourcesParams>
Properties
Limit
Gets or sets the maximum number of results to return. Default is 200 to prevent overwhelming responses.
Declaration
[McpDescription("Maximum number of results to return", Required = false)]
public int Limit { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Pattern
Gets or sets the glob pattern for filtering files (e.g., ".cs", ".txt"). Default is "*.cs" to list C# script files.
Declaration
[McpDescription("Glob pattern for filtering files", Required = false)]
public string Pattern { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ProjectRoot
Gets or sets an override for the project root path. When null or empty, uses the current Unity project root.
Declaration
[McpDescription("Override project root path", Required = false)]
public string ProjectRoot { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Under
Gets or sets the folder under project root to search in. Default is "Assets" to search only under the Assets folder.
Declaration
[McpDescription("Folder under project root to search in", Required = false)]
public string Under { get; set; }
Property Value
| Type | Description |
|---|---|
| string |