Skip to main content
Glama

godot_run_scene

Execute a specific scene from a Godot project to test gameplay, debug functionality, or verify scene behavior during development.

Instructions

Run a specific Godot scene from an existing project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYesPath to the Godot project directory or its project.godot file.
scene_pathYesPath to the target .tscn file. Absolute, relative, and res:// paths are supported.
headlessNoWhether to run the scene in headless mode.
godot_executableNoOptional explicit path to the Godot executable or .app bundle.

Implementation Reference

  • Registration of the `godot_run_scene` tool, which delegates to `GodotController.run_scene`.
        name="godot_run_scene",
        description="Run a specific Godot scene from an existing project.",
        input_schema={
            "type": "object",
            "properties": {
                "project_path": {
                    "type": "string",
                    "description": "Path to the Godot project directory or its project.godot file.",
                },
                "scene_path": {
                    "type": "string",
                    "description": "Path to the target .tscn file. Absolute, relative, and res:// paths are supported.",
                },
                "headless": {
                    "type": "boolean",
                    "description": "Whether to run the scene in headless mode.",
                    "default": False,
                },
                "godot_executable": {
                    "type": "string",
                    "description": "Optional explicit path to the Godot executable or .app bundle.",
                },
            },
            "required": ["project_path", "scene_path"],
            "additionalProperties": False,
        },
        handler=lambda args: self.controller.run_scene(
            project_path=args["project_path"],
            scene_path=args["scene_path"],
            headless=bool(args.get("headless", False)),
            godot_executable=args.get("godot_executable"),
        ),
    ),
  • The `GodotController.run_scene` method that implements the tool's execution logic by launching a Godot subprocess.
    def run_scene(
        self,
        project_path: str,
        scene_path: str,
        godot_executable: str | None = None,
        headless: bool = False,
    ) -> dict[str, Any]:
        project_dir = ensure_project_path(project_path)
        executable, version = resolve_godot_executable(godot_executable)
        absolute_scene_path, resource_scene_path = resolve_scene_path(project_dir, scene_path)
    
        if not absolute_scene_path.exists():
            raise GodotError(f"Scene not found: {absolute_scene_path}")
    
        command = [str(executable), "--path", str(project_dir)]
        if headless:
            command.append("--headless")
        command.append(str(absolute_scene_path))
    
        launched = _launch_process(command, cwd=project_dir, log_name="run-scene")
        return {
            "project_path": str(project_dir),
            "scene_path": str(absolute_scene_path),
            "scene_resource_path": resource_scene_path,
            "pid": launched.pid,
            "command": launched.command,
            "log_path": launched.log_path,
            "headless": headless,
            "godot_version": version,
        }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. While 'Run' implies execution, it doesn't describe what 'running a scene' entails (e.g., launching the Godot editor? Starting a game instance?), whether it requires specific permissions, what happens to existing running instances, or what output/errors to expect. This leaves significant behavioral gaps for a tool that executes code.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, focused sentence with zero wasted words. It front-loads the core purpose without unnecessary elaboration, making it immediately scannable and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool that executes scenes (a potentially complex operation with side effects), the description is inadequate. With no annotations, no output schema, and minimal behavioral context, it fails to address critical aspects like what 'running' entails, success/failure indicators, or how it differs from similar execution tools in the sibling set.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 100% description coverage, so all parameters are documented in the structured fields. The description adds no additional parameter semantics beyond what's already in the schema (e.g., it doesn't explain path resolution precedence, headless mode implications, or executable version compatibility). This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Run') and target resource ('a specific Godot scene from an existing project'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'godot_run_project' or 'godot_run_with_capture', which would require more specific scope clarification.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'godot_run_project' (which runs the main scene) or 'godot_run_with_capture' (which captures output). There's no mention of prerequisites, typical use cases, or exclusions, leaving the agent to infer usage from tool names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/MhrnMhrn/godot-mcp'

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