assets-get-data

Reads serializable fields and properties from Unity asset files with path-scoped queries.

Updated May 27, 2026
One-click install
npx skills add https://github.com/AdielMag/ClashUp --skill assets-get-data-adielmag
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: assets-get-data
Source: https://github.com/AdielMag/ClashUp/tree/main/client/ClashUp.Unity/.claude/skills/assets-get-data
Command: npx skills add https://github.com/AdielMag/ClashUp --skill assets-get-data-adielmag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Inspecting Unity assets such as Materials, ScriptableObjects, and Prefabs requires loading entire serialized objects, which wastes tokens and context when you only need a few fields. This Skill retrieves asset data with optional path-scoped reads so you get exactly the fields you need. ## Core Features & Use Cases - Full Asset Serialization: Returns every serializable field and property of any asset in the Assets or Packages folders as structured JSON. - Path-Scoped Reads: Supply paths to read individual fields like nested/field or arrayField/[i], or use viewQuery to filter by name regex, max depth, or type. - Use Case: After locating a Material with the assets-find tool, read only its shader properties via a view query instead of pulling the entire serialized asset into context. ## Quick Start Ask the AI to get the data of a specific Unity asset by its path or instance ID, optionally limiting the read to specific field paths.

Frequently Asked Questions about assets-get-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read serialized fields from a Unity asset?▼

Call the assets-get-data tool with an assetRef containing the asset's instanceID, path, or GUID. It returns all serializable fields and properties as structured JSON, including nested fields and props.

How to read only specific fields from a Unity asset to save tokens?▼

Pass a paths list like 'nested/field' or 'arrayField/[i]' to read individual fields, or use viewQuery with a NamePattern regex, MaxDepth, or TypeFilter. The two parameters are mutually exclusive.

What asset types can be inspected in a Unity project?▼

Any UnityEngine.Object asset located in the Assets or Packages folders works, including Materials, ScriptableObjects, and Prefabs. Reference the asset by instanceID, assetPath starting with 'Assets/', or assetGuid.

Why is unity-mcp-cli not found when running the tool?▼

The CLI is not installed globally. Install it with 'npm install -g unity-mcp-cli' or prefix commands with npx, and check the unity-initial-setup skill for full installation instructions.

Can I use paths and viewQuery together in one call?▼

No, paths and viewQuery are mutually exclusive; supply at most one per call. When neither is provided, the full asset is serialized for backwards compatibility.