Files
EnglewoodLAB/SKILLS/unity-editor/assets-find-built-in.md

3.7 KiB

name, description
name description
assets-find-built-in Search the built-in assets of the Unity Editor located in the built-in resources: Resources/unity_builtin_extra. Doesn't support GUIDs since built-in assets do not have them.

Assets / Find (Built-in)

Search the built-in assets of the Unity Editor located in the built-in resources: Resources/unity_builtin_extra. Doesn't support GUIDs since built-in assets do not have them.

How to Call

HTTP API (Direct Tool Execution)

Execute this tool directly via the MCP Plugin HTTP API:

curl -X POST http://localhost:8080/api/tools/assets-find-built-in \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string_value",
  "type": "string_value",
  "maxResults": 0
}'

With Authorization (if required)

curl -X POST http://localhost:8080/api/tools/assets-find-built-in \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
  "name": "string_value",
  "type": "string_value",
  "maxResults": 0
}'

Input

Name Type Required Description
name string No The name of the asset to filter by.
type any No The type of the asset to filter by.
maxResults integer No Maximum number of assets to return. If the number of found assets exceeds this limit, the result will be truncated.

Input JSON Schema

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the asset to filter by."
    },
    "type": {
      "$ref": "#/$defs/System.Type",
      "description": "The type of the asset to filter by."
    },
    "maxResults": {
      "type": "integer",
      "description": "Maximum number of assets to return. If the number of found assets exceeds this limit, the result will be truncated."
    }
  },
  "$defs": {
    "System.Type": {
      "type": "string"
    }
  }
}

Output

Output JSON Schema

{
  "type": "object",
  "properties": {
    "result": {
      "$ref": "#/$defs/System.Collections.Generic.List\u003Ccom.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef\u003E"
    }
  },
  "$defs": {
    "com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef": {
      "type": "object",
      "properties": {
        "instanceID": {
          "type": "integer",
          "description": "instanceID of the UnityEngine.Object. If this is \u00270\u0027 and \u0027assetPath\u0027 and \u0027assetGuid\u0027 is not provided, empty or null, then it will be used as \u0027null\u0027."
        },
        "assetType": {
          "$ref": "#/$defs/System.Type",
          "description": "Type of the asset."
        },
        "assetPath": {
          "type": "string",
          "description": "Path to the asset within the project. Starts with \u0027Assets/\u0027"
        },
        "assetGuid": {
          "type": "string",
          "description": "Unique identifier for the asset."
        }
      },
      "required": [
        "instanceID"
      ],
      "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders."
    },
    "System.Type": {
      "type": "string"
    },
    "System.Collections.Generic.List\u003Ccom.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef\u003E": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef",
        "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders."
      }
    }
  },
  "required": [
    "result"
  ]
}