Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agents/skills/animation-get-data/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"animRef": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef"
"$ref": "#/$defs/AIGD.AssetObjectRef"
}
},
"$defs": {
"System.Type": {
"type": "string"
},
"com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef": {
"AIGD.AssetObjectRef": {
"type": "object",
"properties": {
"instanceID": {
Expand Down
4 changes: 2 additions & 2 deletions .agents/skills/animation-modify/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"animRef": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef"
"$ref": "#/$defs/AIGD.AssetObjectRef"
},
"modifications": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimationModification[]"
Expand All @@ -56,7 +56,7 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"System.Type": {
"type": "string"
},
"com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef": {
"AIGD.AssetObjectRef": {
"type": "object",
"properties": {
"instanceID": {
Expand Down
4 changes: 2 additions & 2 deletions .agents/skills/animator-get-data/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"animatorRef": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef"
"$ref": "#/$defs/AIGD.AssetObjectRef"
}
},
"$defs": {
"System.Type": {
"type": "string"
},
"com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef": {
"AIGD.AssetObjectRef": {
"type": "object",
"properties": {
"instanceID": {
Expand Down
4 changes: 2 additions & 2 deletions .agents/skills/animator-modify/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"animatorRef": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef"
"$ref": "#/$defs/AIGD.AssetObjectRef"
},
"modifications": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimatorModification[]"
Expand All @@ -56,7 +56,7 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"System.Type": {
"type": "string"
},
"com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef": {
"AIGD.AssetObjectRef": {
"type": "object",
"properties": {
"instanceID": {
Expand Down
12 changes: 6 additions & 6 deletions .agents/skills/assets-copy/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"result": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets+CopyAssetsResponse"
"$ref": "#/$defs/AIGD.CopyAssetsResponse"
}
},
"$defs": {
"System.Collections.Generic.List<com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef>": {
"System.Collections.Generic.List<AIGD.AssetObjectRef>": {
"type": "array",
"items": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef",
"$ref": "#/$defs/AIGD.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."
}
},
"com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef": {
"AIGD.AssetObjectRef": {
"type": "object",
"properties": {
"instanceID": {
Expand Down Expand Up @@ -121,11 +121,11 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "string"
}
},
"com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets+CopyAssetsResponse": {
"AIGD.CopyAssetsResponse": {
"type": "object",
"properties": {
"CopiedAssets": {
"$ref": "#/$defs/System.Collections.Generic.List<com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef>",
"$ref": "#/$defs/System.Collections.Generic.List<AIGD.AssetObjectRef>",
"description": "List of copied assets."
},
"Errors": {
Expand Down
12 changes: 6 additions & 6 deletions .agents/skills/assets-create-folder/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"inputs": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets+CreateFolderInput[]"
"$ref": "#/$defs/AIGD.CreateFolderInput[]"
}
},
"$defs": {
"com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets+CreateFolderInput": {
"AIGD.CreateFolderInput": {
"type": "object",
"properties": {
"ParentFolderPath": {
Expand All @@ -61,10 +61,10 @@ Read the /unity-initial-setup skill for detailed installation instructions.
}
}
},
"com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets+CreateFolderInput[]": {
"AIGD.CreateFolderInput[]": {
"type": "array",
"items": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets+CreateFolderInput"
"$ref": "#/$defs/AIGD.CreateFolderInput"
}
}
},
Expand All @@ -83,7 +83,7 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"result": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets+CreateFolderResponse"
"$ref": "#/$defs/AIGD.CreateFolderResponse"
}
},
"$defs": {
Expand All @@ -93,7 +93,7 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "string"
}
},
"com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets+CreateFolderResponse": {
"AIGD.CreateFolderResponse": {
"type": "object",
"properties": {
"CreatedFolderGuids": {
Expand Down
4 changes: 2 additions & 2 deletions .agents/skills/assets-delete/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"result": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets+DeleteAssetsResponse"
"$ref": "#/$defs/AIGD.DeleteAssetsResponse"
}
},
"$defs": {
Expand All @@ -80,7 +80,7 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "string"
}
},
"com.IvanMurzak.Unity.MCP.Editor.API.Tool_Assets+DeleteAssetsResponse": {
"AIGD.DeleteAssetsResponse": {
"type": "object",
"properties": {
"DeletedPaths": {
Expand Down
8 changes: 4 additions & 4 deletions .agents/skills/assets-find-built-in/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"result": {
"$ref": "#/$defs/System.Collections.Generic.List<com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef>"
"$ref": "#/$defs/System.Collections.Generic.List<AIGD.AssetObjectRef>"
}
},
"$defs": {
"com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef": {
"AIGD.AssetObjectRef": {
"type": "object",
"properties": {
"instanceID": {
Expand Down Expand Up @@ -106,10 +106,10 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"System.Type": {
"type": "string"
},
"System.Collections.Generic.List<com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef>": {
"System.Collections.Generic.List<AIGD.AssetObjectRef>": {
"type": "array",
"items": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef",
"$ref": "#/$defs/AIGD.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."
}
}
Expand Down
8 changes: 4 additions & 4 deletions .agents/skills/assets-find/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"result": {
"$ref": "#/$defs/System.Collections.Generic.List<com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef>"
"$ref": "#/$defs/System.Collections.Generic.List<AIGD.AssetObjectRef>"
}
},
"$defs": {
"com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef": {
"AIGD.AssetObjectRef": {
"type": "object",
"properties": {
"instanceID": {
Expand Down Expand Up @@ -109,10 +109,10 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"System.Type": {
"type": "string"
},
"System.Collections.Generic.List<com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef>": {
"System.Collections.Generic.List<AIGD.AssetObjectRef>": {
"type": "array",
"items": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef",
"$ref": "#/$defs/AIGD.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."
}
}
Expand Down
49 changes: 45 additions & 4 deletions .agents/skills/assets-get-data/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
name: assets-get-data
description: Get asset data from the asset file in the Unity project. It includes all serializable fields and properties of the asset. Use 'assets-find' tool to find asset before using this tool.
description: |-
Get asset data from the asset file in the Unity project. It includes all serializable fields and properties of the asset. Use 'assets-find' tool to find asset before using this tool.

Path-scoped reads (token-saving): supply 'paths' (a list of paths) to read only the listed fields/elements via Reflector.TryReadAt, or 'viewQuery' (a ViewQuery) to navigate to a subtree and/or filter by name regex / max depth / type via Reflector.View. These two parameters are mutually exclusive — supply at most one. When neither is supplied the full asset is serialized as before (backwards compatible).
Path syntax: 'fieldName', 'nested/field', 'arrayField/[i]', 'dictField/[key]'. Leading '#/' is stripped.
---

# Assets / Get Data
Expand All @@ -9,7 +13,9 @@ description: Get asset data from the asset file in the Unity project. It include

```bash
unity-mcp-cli run-tool assets-get-data --input '{
"assetRef": "string_value"
"assetRef": "string_value",
"paths": "string_value",
"viewQuery": "string_value"
}'
```

Expand All @@ -36,6 +42,8 @@ Read the /unity-initial-setup skill for detailed installation instructions.
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `assetRef` | `any` | Yes | Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders. |
| `paths` | `any` | No | Optional. List of paths to read individually via Reflector.TryReadAt. Path syntax: 'fieldName', 'nested/field', 'arrayField/[i]', 'dictField/[key]'. Mutually exclusive with 'viewQuery'. |
| `viewQuery` | `any` | No | Optional. View-query filter routed through Reflector.View — combines a starting Path, a case-insensitive NamePattern regex, MaxDepth, and an optional TypeFilter. Mutually exclusive with 'paths'. |

### Input JSON Schema

Expand All @@ -44,14 +52,20 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"assetRef": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef"
"$ref": "#/$defs/AIGD.AssetObjectRef"
},
"paths": {
"$ref": "#/$defs/System.Collections.Generic.List<System.String>"
},
"viewQuery": {
"$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.ViewQuery"
}
},
"$defs": {
"System.Type": {
"type": "string"
},
"com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef": {
"AIGD.AssetObjectRef": {
"type": "object",
"properties": {
"instanceID": {
Expand All @@ -75,6 +89,33 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"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.Collections.Generic.List<System.String>": {
"type": "array",
"items": {
"type": "string"
}
},
"com.IvanMurzak.ReflectorNet.Model.ViewQuery": {
"type": "object",
"properties": {
"Path": {
"type": "string",
"description": "Navigate to this path first, then serialize only that subtree. Path segments are separated by '/'. Use '[i]' for array/list index (e.g. 'users/[2]/name') and '[key]' for dictionary entry (e.g. 'config/[timeout]'). A leading '#/' is stripped automatically. Examples: 'admin/name', 'users/[0]/email', 'config/[timeout]'. Leave null to start from the root object."
},
"NamePattern": {
"type": "string",
"description": "Case-insensitive .NET regex pattern matched against field and property names. Only branches containing at least one match are kept in the result tree. Examples: 'orbitRadius' (exact name), 'orbit.*' (prefix match), 'radius|speed' (either name). When nothing matches, the root envelope is returned with empty fields/props. Leave null to return all fields and properties without filtering."
},
"MaxDepth": {
"type": "integer",
"description": "Maximum nesting depth of the returned serialized tree. 0 = root type name and value only — no nested fields or properties. 1 = one level of fields/props visible, their children stripped. 2 = two levels visible, and so on. Leave null (default) for unlimited depth."
},
"TypeFilter": {
"$ref": "#/$defs/System.Type",
"description": "When set, prunes the result tree to members whose runtime type is assignable to this type. Non-matching branches are removed; the root envelope is always preserved. Examples: typeof(float) keeps only float fields, typeof(IEnumerable) keeps only collections. Leave null to include members of any type."
}
}
}
},
"required": [
Expand Down
4 changes: 2 additions & 2 deletions .agents/skills/assets-material-create/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ Read the /unity-initial-setup skill for detailed installation instructions.
"type": "object",
"properties": {
"result": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef",
"$ref": "#/$defs/AIGD.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."
}
},
"$defs": {
"System.Type": {
"type": "string"
},
"com.IvanMurzak.Unity.MCP.Runtime.Data.AssetObjectRef": {
"AIGD.AssetObjectRef": {
"type": "object",
"properties": {
"instanceID": {
Expand Down
Loading
Loading