object-get-data

Retrieves serialized properties and fields of a UnityEngine.Object via unity-mcp-cli.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill object-get-data-ishaansingh-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: object-get-data
Source: https://github.com/ishaansingh-ai/Mechanical-2D/tree/main/.claude/skills/object-get-data
Command: npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill object-get-data-ishaansingh-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When working with Unity through the MCP CLI, you often need to inspect the current state of a GameObject, Component, or Asset before deciding what to change. This Skill returns the full serialized data of any UnityEngine.Object so you can read its properties and fields without opening the Unity Editor. ## Core Features & Use Cases - Object Inspection: Pass an object reference by instanceID and receive the complete serialized representation including nested fields and properties. - Type-Aware Output: Results include full type names (e.g., 'UnityEngine.Vector3') alongside values, making it easy to understand object structure. - Use Case: Before modifying a Transform component, call this tool with the component's instanceID to read its current position, rotation, and scale values, then use the 'object-modify' tool to apply changes. ## Quick Start Ask the AI to get the serialized data of the Unity object with a specific instanceID using the object-get-data tool.

Frequently Asked Questions about object-get-data

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

FAQPage Schema
How do I get the data of a Unity object from the command line?▼

Run unity-mcp-cli run-tool object-get-data with a JSON input containing an objectRef with the object's instanceID. The tool returns the serialized properties and fields of any UnityEngine.Object such as a GameObject, Component, or Asset.

What input does the object-get-data tool require?▼

It requires a single objectRef parameter containing an instanceID integer that identifies the UnityEngine.Object instance. An instanceID of 0 is treated as null, so you must supply a valid non-zero ID.

Can object-get-data modify Unity object properties?▼

No, this tool is read-only and only returns serialized data. To modify the data of a Unity object, use the separate 'object-modify' tool as indicated in the tool description.

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

The CLI is either not installed or not on your PATH. Install it globally with npm install -g unity-mcp-cli, or prefix commands with npx unity-mcp-cli, and consult the unity-initial-setup skill for full installation steps.

What does the output of object-get-data look like?▼

The output is a SerializedMember object containing the full type name, object name, value, and recursive lists of nested fields and properties. Each nested member follows the same structure, allowing deep inspection of complex objects.