docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ListResourcesParams

    Parameters for the Unity.ListResources tool. Lists project URIs (unity://path/...) under a folder (default: Assets).

    Inheritance
    object
    ListResourcesParams
    Implements
    IEquatable<ListResourcesParams>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)