object-get-data

Reads serialized fields and properties from UnityEngine.Object instances with path-scoped filtering.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Inspecting Unity objects at runtime often means dumping entire serialized structures, which wastes tokens and buries the fields you actually need. This Skill retrieves serialized data from any UnityEngine.Object and lets you scope reads to specific paths or filtered subtrees. ## Core Features & Use Cases - Full Object Serialization: Returns all serializable fields and properties of a GameObject, Component, or Asset as structured JSON. - Path-Scoped Reads: Supply paths like nested/field or arrayField/[i] to read only the members you need via Reflector.TryReadAt. - View Queries: Use viewQuery to navigate to a subtree and filter by name regex, max depth, or type via Reflector.View. - Use Case: While debugging a Unity scene, ask for only the transform/position of a specific GameObject instead of serializing its entire component tree, then pair with the object-modify tool to write changes back. ## Quick Start Ask the assistant to get the serialized data of a Unity object by its instance ID, optionally limiting the read to specific field paths.

Frequently Asked Questions about object-get-data

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

FAQPage Schema
How do I read serialized data from a Unity object?▼

Call the object-get-data tool with an objectRef containing the instanceID of the UnityEngine.Object. It returns all serializable fields and properties as structured JSON, including nested members.

How to read only specific fields of a Unity object?▼

Pass the paths parameter with entries like 'nested/field', 'arrayField/[i]', or 'dictField/[key]' to read only those members. Alternatively use viewQuery to filter by name regex, max depth, or type.

What is the difference between paths and viewQuery parameters?▼

The paths parameter reads a list of individual field paths at any depth via Reflector.TryReadAt. The viewQuery parameter navigates to one subtree and applies name regex, MaxDepth, and TypeFilter via Reflector.View. They are mutually exclusive.

Can I modify Unity object data with this tool?▼

No, object-get-data is read-only. To write changes back to a Unity object, use the companion object-modify tool after inspecting the current values with this one.

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

The CLI is not installed or not on your PATH. Install it globally with 'npm install -g unity-mcp-cli' or invoke it through 'npx unity-mcp-cli', then retry the command.