unity_scene_hierarchy
Retrieve the full hierarchy tree of all GameObjects in the active Unity scene, including their components and children, with options to limit depth, node count, and filter by parent path.
Instructions
Get the full hierarchy tree of all GameObjects in the active scene, including their components and children.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Maximum depth to traverse (default: 10) | |
| maxNodes | No | Maximum total nodes to return (default: 5000). Use lower values for very large scenes to avoid timeouts. | |
| parentPath | No | Only return hierarchy under this GameObject path (e.g. 'Canvas/Panel'). Useful for exploring specific subtrees in large scenes. | |
| port | No | Target Unity instance port for parallel-safe routing. Get this from unity_select_instance. When working with multiple Unity instances, ALWAYS include this parameter. |