Unity Get Hierarchy
unity_get_hierarchyRetrieve the full hierarchy tree of GameObjects from the active Unity scene. Optionally specify a root path, depth, or timeout.
Instructions
Get the full scene hierarchy tree from the active Unity scene.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "unity_get_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootPath | No | Optional root GameObject path to start from. Empty for full scene. | |
| depth | No | Maximum hierarchy depth. | |
| timeoutMs | No | Command timeout. |