Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Gets serialized fields and properties of a Unity Object, with optional path-scoped reads to save tokens.
18% 91%+73 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 4 of 22 without it.
3 of 3 safety checks passed
Not used yet
Get data of the specified Unity Object. Returns serialized data of the object including its properties and fields. If need to modify the data use 'object-modify' tool.
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 object is serialized (backwards compatible).
fieldName, nested/field, arrayField/[i], dictField/[key]. Leading #/ is stripped.
unity-mcp-cli run-tool object-get-data --input '{
"objectRef": "string_value",
"paths": "string_value",
"viewQuery": "string_value"
}'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-tool object-get-data --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-tool object-get-data --input-file - <<'EOF' {"param": "value"} EOF
If unity-mcp-cli is not found, either install it globally (npm install -g unity-mcp-cli) or use npx unity-mcp-cli instead.
Read the /unity-initial-setup skill for detailed installation instructions.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.