godot_get_scene_tree
Retrieve the node hierarchy of a Godot scene to inspect its structure, including node types, paths, and properties. Specify a scene path or use the active scene, with configurable depth for detailed analysis.
Instructions
Returns the full node hierarchy of the specified scene (or the currently active scene if no path given).
Args:
scene_path (string, optional): Path to the scene file e.g. "res://levels/main.tscn". Defaults to the active scene.
depth (number, optional): Maximum recursion depth (default: 10, max: 50).
Returns: Nested node tree: { name, type, path, children[], properties? }
Examples:
Use when: "Show me the scene tree" or "What nodes are in res://player.tscn?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | No | res:// path to the scene. Omit for active scene. | |
| depth | No | Max depth to traverse |