Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
scene_pathNores:// path to the scene. Omit for active scene.
depthNoMax depth to traverse

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ricky-yosh/godot-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server