object-get-data

Retrieve serialized properties and fields of UnityEngine.Object instances via unity-mcp-cli.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill object-get-data-fermisloth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: object-get-data
Source: https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment/tree/main/.agent/skills/object-get-data
Command: npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill object-get-data-fermisloth

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 fully 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: Retrieve serialized data of any UnityEngine.Object (GameObject, Component, Asset) by its instanceID. - Structured Output: Returns a SerializedMember tree including type names, values, nested fields, and properties as JSON. - 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 a Unity object by providing its instanceID, for example: read the data of the object with instanceID 12345.

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 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 the UnityEngine.Object as structured JSON.

What Unity object types can object-get-data inspect?

It accepts any reference derived from UnityEngine.Object, including GameObjects, Components, and Assets. You identify the target by its instanceID inside the objectRef parameter.

What should I do if unity-mcp-cli is not found?

Install it globally with npm install -g unity-mcp-cli, or prefix commands with npx unity-mcp-cli. The unity-initial-setup skill contains detailed installation instructions.

Can object-get-data modify Unity object values?

No, this tool is read-only and only returns serialized data. To change values, use the separate 'object-modify' tool as indicated in the skill documentation.

What does instanceID 0 mean in the objectRef input?

An instanceID of 0 is treated as null by the tool. You must supply a valid non-zero instanceID of an existing UnityEngine.Object to receive serialized data.