scene_get_hierarchy
Fetch the open scene's node hierarchy, returning a paginated flat list of nodes with name, type, path, and child count up to a specified depth. Use it to inspect and navigate scene structure for editor automation.
Instructions
Get the scene tree hierarchy from the open scene.
Returns a paginated flat list of nodes with name, type, path, and child count. Walks up to the specified depth.
Resource form: godot://scene/hierarchy — prefer for active-session
reads.
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": "scene_get_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum walk depth. Default 10. | |
| limit | No | Max number of nodes to return. Default 100. | |
| offset | No | Number of nodes to skip. Default 0. | |
| session_id | No | Optional Godot session to target. Empty = active session. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||