Skip to main content
Glama

See and drive the open Godot editor

godot_editor

Read and control the open Godot editor: inspect scenes, select nodes, make undoable edits, play the game, and capture screenshots via local addon.

Instructions

Talks to the Godot editor the user has open, through the optional Godotwright addon (127.0.0.1 only, a new token every start). Everything else in Godotwright works without it. op install copies the addon into the project and enables it (the user then restarts the editor or enables it under Project Settings > Plugins); op uninstall removes it; op addon says whether it is installed and running; op ops lists every op with its arguments. Reading: status (open scenes, which is current, unsaved changes, whether the game runs), selection, tree (the edited scene as the editor has it now, unsaved changes included), inspect (a node's stored properties), errors (errors and warnings the editor logged, Godot 4.5+; pass since to get only new ones), is_scanning. Acting: open_scene, select, edit_node, save_scene, save_all, reload_scene (after you changed a scene file, so the editor shows it; refuses unsaved editor changes unless discard: true), close_scene, filesystem_scan, reimport, play (main, current or a scene), stop, screenshot (editor, viewport_2d or viewport_3d; a PNG under .godot/godotwright/). Editing the open scene, each as one undoable editor action (Ctrl+Z in the editor takes it back; the scene stays unsaved until save_scene): set_property (path, property, value as Variant text such as "Vector2(1, 2)"), add_node (a type or a scene instance under parent, with name and properties), remove_node, rename_node; each answer names the undo step. For edits to files that are not open, or many at once, use godot_scene_edit, then reload_scene. Errors of a game started from the editor are not in op errors: godot_logs reads them from the game's log file (play returns its cursor). Ops: status, open_scene, save_scene, save_all, reload_scene, close_scene, selection, select, edit_node, inspect, tree, play, stop, screenshot, filesystem_scan, reimport, is_scanning, errors, set_property, add_node, remove_node, rename_node.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "op": "<op>"
    },
    "name": "godot_editor"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYesinstall, uninstall, addon, ops, or an editor op such as status, tree, errors, reload_scene, play, screenshot
argsNoarguments of the editor op, e.g. {"path": "res://main.tscn"} or {"since": 12}
pathNoproject folder, or a file or folder inside it (relative to the server's folder; default: the current project)
user_dirNoplay: the folder user:// is, as you pass it to godot_logs (another user, WSL, a container, a Flatpak), so the log cursor play returns is taken there
timeout_secondsNohow long to wait for the editor (default 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.10.0
    • addedInput schema / properties / user_dir
      Added value: +{
      +  "description": "play: the folder user:// is, as you pass it to godot_logs (another user, WSL, a container, a Flatpak), so the log cursor play returns is taken there",
      +  "type": "string"
      +}
  2. Addedv0.9.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false; the description adds far more: loopback-only 127.0.0.1 with a fresh token per start, optional addon with graceful degradation ("Everything else in Godotwright works without it"), scene-level edits being undoable via Ctrl+Z but left unsaved, screenshots written to .godot/godotwright/, and the Godot 4.5+ requirement for op errors.

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

Conciseness3/5

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

It is front-loaded with routing and install guidance, which is good, but the body is a single semicolon-chained block that is hard to scan for a specific op. The trailing "Ops: status, open_scene, ..." recital repeats op names already described above, so it does not fully earn its space.

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

Completeness5/5

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

For a dispatcher with a free-form args object and no output schema, the description supplies what is missing: what status and tree actually return, that errors carries new-only semantics via since, that screenshot writes a PNG path, and that play returns a log cursor. An agent has enough to pick an op and call it correctly.

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

Parameters5/5

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

Schema coverage is already 100%, but the description goes beyond it by attaching argument meaning to individual ops: set_property takes path, property and a Variant-text value ("Vector2(1, 2)"), reload_scene takes discard:true, errors takes since, play returns a cursor tied to user_dir. That is real semantics the free-form `args` object cannot convey on its own.

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

Purpose5/5

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

"Talks to the Godot editor the user has open, through the optional Godotwright addon" states a specific verb and target, then enumerates the op surface so an agent knows exactly what capability sits behind it. It also names the sibling it is not (godot_scene_edit) and the sibling it complements (godot_logs), so it is distinguishable without opening another schema.

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

Usage Guidelines5/5

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

Explicit routing is given for the main ambiguities: use godot_scene_edit for files that are not open or many edits at once, then reload_scene; errors from a game started in the editor are in godot_logs, not op errors. Preconditions are stated too (addon install, restart or enable under Project Settings > Plugins), and reload_scene's refusal rule is spelled out.

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