{"at":"2026-11-23T01:48:24.602Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:48:25.088Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:48:28.202Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:48:28.675Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"subscribe":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"godot-mcp-bridge","version":"1.3.0"}}}}
{"at":"2026-11-23T01:48:28.675Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:48:28.675Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:48:28.677Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Check if Godot editor is connected to the MCP server.","inputSchema":{"properties":{},"required":[],"type":"object"},"name":"get_godot_status"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Diagnose why the Godot editor is (or is not) connected — the #1 setup frustration. Works even when nothing is connected (runs entirely in the MCP server). Returns a pass/fail checklist plus, when disconnected, an ordered list of concrete remedies (enable the plugin, wrong port, Godot version, the _console.exe stub, etc.). Call this first when tools report \"Godot editor is not connected\".","inputSchema":{"properties":{},"required":[],"type":"object"},"name":"diagnose_connection"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Read a short markdown guide from the server — the same content as the MCP resources, exposed as a tool for clients that do not support them. Call with no args to list them, or with a slug for the full markdown. Worth reading when a workflow is non-obvious: testing a running game, choosing between the scene-editing tools, \"Runtime helper not connected\".","inputSchema":{"properties":{"slug":{"description":"Guide to read. Omit to list them.","enum":["testing-loop","scene-editing","asset-generation","troubleshooting","debugging","tool-index"],"type":"string"}},"required":[],"type":"object"},"name":"get_guide"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Find a tool by what you want to do, across all 231 — including the ones whose toolset is off. Ask \"autotile a tilemap\" or \"record input\" and get the matching names, a one-line summary each, and the toolset to enable. Use this when you know what you want to DO but not what it is called; list_toolsets is for browsing.","inputSchema":{"properties":{"include_schema":{"description":"Also return each match's full inputSchema. Default false — the names and summaries are usually enough to pick one.","type":"boolean"},"limit":{"description":"How many matches to return (1-40, default 8).","type":"number"},"query":{"description":"What you are trying to do in English or Spanish (e.g. \"bake a navmesh\", \"read the player position while the game runs\").","type":"string"}},"required":["query"],"type":"object"},"name":"find_tools"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List every toolset with what it is for, how many tools it holds, and whether it is enabled. Only \"core\" is on by default; if the tool you need is not in list_tools, find its toolset here and enable that one.","inputSchema":{"properties":{"include_tools":{"description":"Also list every tool name in each toolset. Off by default: that is ~2,000 tokens, and find_tools answers \"what is this called\" for a quarter of it.","type":"boolean"}},"required":[],"type":"object"},"name":"list_toolsets"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Enable an optional toolset so its tools appear in the next list_tools call. \"core\" (look around, edit scenes/scripts, run the game, read errors) is always on; the rest are opt-in to keep the surface small. Use find_tools or list_toolsets to find which one holds the tool you want.","inputSchema":{"properties":{"name":{"description":"Toolset to enable, or \"all\".","enum":["all","runtime","scaffolding","analysis","editor","project_config","export","refactor","code_intel","debug","scene_editing","animation","physics","audio","tilemap","3d","shaders","navigation","ui","vfx","testing","utility"],"type":"string"}},"required":["name"],"type":"object"},"name":"enable_toolset"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Disable a toolset so its tools stop appearing in list_tools. Does not affect tool names already known to the client.","inputSchema":{"properties":{"name":{"description":"Toolset to disable, or \"all\".","enum":["all","runtime","scaffolding","analysis","editor","project_config","export","refactor","code_intel","debug","scene_editing","animation","physics","audio","tilemap","3d","shaders","navigation","ui","vfx","testing","utility"],"type":"string"}},"required":["name"],"type":"object"},"name":"disable_toolset"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List files and folders under a Godot project path (e.g., res://). Returns arrays of files and folders in the specified directory.","inputSchema":{"properties":{"include_hidden":{"description":"Include dot-entries. Default false. Supported by the handler all along; it was missing from this schema, so the unknown-argument guard rejected anyone who passed it.","type":"boolean"},"root":{"description":"Starting path like res://addons/ai_assistant or res://","type":"string"}},"required":["root"],"type":"object"},"name":"list_dir"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Read a text file from the Godot project, optionally a specific line range. Useful for reading GDScript files, scene files, or any text-based content.","inputSchema":{"properties":{"end_line":{"description":"Inclusive end line; 0 or missing means to end of file (optional)","type":"number"},"max_bytes":{"description":"Stop after this many bytes. Use it on a large file rather than pulling the whole thing into context. Supported by the handler all along; it was missing from this schema.","type":"number"},"path":{"description":"res:// path to the file (e.g., res://scripts/player.gd)","type":"string"},"start_line":{"description":"1-based inclusive start line (optional)","type":"number"}},"required":["path"],"type":"object"},"name":"read_file"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Search the Godot project for a substring and return file hits with line numbers. At most max_results matches (default 50), each line cut at 200 chars, because the answer costs context. When it stops early it says `truncated: true` and reports `returned` rather than a total it never finished counting.","inputSchema":{"properties":{"case_sensitive":{"description":"Match case exactly. Default false.","type":"boolean"},"glob":{"description":"Optional glob filter like **/*.gd to search only GDScript files","type":"string"},"include_addons":{"description":"Search res://addons/ too. Default false: third-party addon source answers almost every common identifier and crowds out the project own code.","type":"boolean"},"max_results":{"description":"Stop after this many matches (default 50). The handler has always supported it; it was missing from this schema, so the unknown-argument guard rejected anyone who tried.","type":"number"},"query":{"description":"Case-insensitive substring to find","type":"string"}},"required":["query"],"type":"object"},"name":"search_project"},{"_meta":{"ui":{"resourceUri":"ui://godot-mcp-bridge/scene-tree"}},"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Dump the scene tree of the scene currently open in the Godot editor (node names, types, and attached scripts). Pass max_depth to keep the output small on large scenes — a depth-limited branch reports its descendant count instead of expanding. Start shallow (max_depth 1-2) for an overview, then drill in.","inputSchema":{"properties":{"max_depth":{"description":"Max tree depth to expand (root is 0). Omit or -1 for the full tree. Use 1-2 for a cheap overview of a big scene.","type":"number"}},"type":"object"},"name":"scene_tree_dump"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Read and parse a scene file to get its node structure (and optionally properties). Use this to understand a scene before editing. On large scenes pass max_depth for a cheap shallow read — a depth-limited node reports children_truncated instead of expanding.","inputSchema":{"properties":{"child_offset":{"default":0,"description":"Skip direct children of the requested node_path. Use next_child_offset from a budget-limited response to page wide branches; inspect nested children_truncated branches separately.","minimum":0,"type":"integer"},"format":{"default":"tree","description":"compact returns root_name, columns and rows instead of nested dictionaries. Same node paths, types, properties, instance/script links and truncation markers with less repeated JSON. Default tree is unchanged.","enum":["tree","compact"],"type":"string"},"include_properties":{"description":"Include a fixed set of common properties (position, rotation, scale, size, visible, modulate, z_index, text, collision layers, mass) on every node. All-or-nothing and expensive on a big tree — prefer `properties`.","type":"boolean"},"max_depth":{"description":"Max tree depth to expand (root is 0). Omit or -1 for the full tree. Use 1-2 for a cheap overview of a big scene.","type":"number"},"max_nodes":{"default":500,"description":"Maximum nodes returned (default 500). Response reports truncation explicitly. Read node_path branches to inspect a larger scene without flooding context.","maximum":10000,"minimum":1,"type":"integer"},"node_path":{"description":"Read this branch instead of the whole scene, e.g. \"Player\" or \"UI/HUD\". Default \".\" (the scene root). max_depth cuts a big scene off at the top; this starts lower, which is usually the actual question (\"what is under Player?\") and answers it without paying for the rest of the tree.","type":"string"},"properties":{"description":"Return exactly these properties on every node, e.g. [\"position\"] to get the whole layout of a 2D scene in one call. Overrides include_properties. A name the node does not have is reported under missing_properties rather than silently omitted, so a typo is visible.","items":{"type":"string"},"type":"array"},"scene_path":{"description":"Path to the scene file (res://path/to/scene.tscn)","type":"string"}},"required":["scene_path"],"type":"object"},"name":"read_scene"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Query Godot's ClassDB for class information: properties, methods, signals, and inheritance. Use this to verify that a class, method, or property actually exists in the running Godot engine before writing code. Prevents using wrong method names, outdated Godot 3 API, or incorrect signatures.","inputSchema":{"properties":{"class_name":{"description":"Godot class name to query (e.g., \"CharacterBody2D\", \"Sprite2D\", \"Control\")","type":"string"},"filter":{"description":"Case-insensitive substring: only members whose name contains it are returned. Use when checking for a specific method/property (e.g. \"velocity\") on a big class — cuts the output massively.","type":"string"},"include_virtual":{"description":"Include well-known virtual methods like _ready, _process, _input (default: true). Set to false to see only public non-virtual methods.","type":"boolean"},"query":{"description":"What to return: \"all\" (default), \"properties\", \"methods\", or \"signals\"","enum":["all","properties","methods","signals"],"type":"string"}},"required":["class_name"],"type":"object"},"name":"classdb_query"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Concise project settings summary: main_scene, window size/stretch, physics tick rate, and render basics.","inputSchema":{"properties":{"include_physics":{"description":"Include physics settings","type":"boolean"},"include_render":{"description":"Include render settings","type":"boolean"}},"type":"object"},"name":"get_project_settings"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Create a new Godot scene (.tscn) file with nodes. Use this to create player scenes, UI screens, game objects, etc.","inputSchema":{"properties":{"attach_script":{"description":"Optional script path to attach to root node (res://path/to/script.gd)","type":"string"},"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"nodes":{"description":"Child nodes to add: {name|node_name, type|node_type, properties?, script?, groups?, children?}. Both key styles work; an unknown key is an error, not a generic Node.","items":{"description":"A node spec: {name|node_name, type|node_type, properties?, script?, groups?, children?}. Unknown keys are rejected with an error.","type":"object"},"type":"array"},"root_node_name":{"description":"Name of root node (default: derived from filename)","type":"string"},"root_node_type":{"description":"Type of root node (e.g., Node2D, CharacterBody2D, Control, Node3D). REQUIRED.","type":"string"},"scene_path":{"description":"Scene file path (e.g., res://Scenes/player.tscn)","type":"string"}},"required":["scene_path","root_node_type"],"type":"object"},"name":"create_scene"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Add a node to an existing scene file, optionally with a script, groups, and a whole sub-tree of children in the same call. Children take the same keys as add_node itself ({name|node_name, type|node_type, properties?, script?, groups?, children?}); an unknown key is an error.","inputSchema":{"properties":{"children":{"description":"Sub-tree to create in the same call. Each entry takes add_node's own args, minus parent_path.","items":{"description":"{name, type, properties?, script?, groups?, children?}","type":"object"},"type":"array"},"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"groups":{"description":"Optional list of node groups this node should belong to. Persisted to the .tscn file.","items":{"type":"string"},"type":"array"},"node_name":{"description":"Name for the new node","type":"string"},"node_type":{"description":"Type of node (e.g., Sprite2D, Camera2D, RigidBody2D, CollisionShape2D)","type":"string"},"parent_path":{"description":"Path to parent node (. for root, or relative path like Sprite2D)","type":"string"},"properties":{"description":"Optional dictionary of properties to set on the node","type":"object"},"scene_path":{"description":"Path to the scene file (res://path/to/scene.tscn)","type":"string"},"script":{"description":"Optional script path to attach to the new node (res://path/to/script.gd)","type":"string"}},"required":["scene_path","node_name","node_type"],"type":"object"},"name":"add_node"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Remove a node from an existing scene file.","inputSchema":{"properties":{"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"node_path":{"description":"Path to the node to remove (cannot be root, use relative path)","type":"string"},"scene_path":{"description":"Path to the scene file","type":"string"}},"required":["scene_path","node_path"],"type":"object"},"name":"remove_node"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Set properties on ONE node — one or many, in a single call and a single save. For the same property across many nodes use batch_set_property. Non-atomic: each property is applied independently and the response separates \"applied\" from \"failed\", so partial success is visible. Never edit a .tscn as text. To set a script use attach_script, NOT a \"script\" property here: that only rewrites the file, leaving the editor's in-memory node scriptless, which makes connect_signal fail. Resource-typed properties need set_resource_property / set_sprite_texture / etc.","inputSchema":{"properties":{"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"node_path":{"description":"Path to the node (. for root, or relative path)","type":"string"},"properties":{"description":"Map of property_name -> value. Each value follows the same form as modify_node_property.value (primitives, arrays, or {type:\"Vector3\",...} discriminated objects).","type":"object"},"scene_path":{"description":"Path to the .tscn scene file","type":"string"}},"required":["scene_path","properties"],"type":"object"},"name":"set_node_properties"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Point an exported property at another NODE in the same scene — the wiring you would otherwise do by dragging a node into an inspector slot. Use for any @export typed as a node (`@export var target: Area2D`, `@export var health: HealthComponent`) or as a NodePath. set_node_properties CANNOT do this: it takes a JSON value, and this needs a live object reference. Fails loudly if the property does not exist or is typed for a different node class, instead of silently doing nothing.","inputSchema":{"properties":{"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"node_path":{"description":"Node that HOLDS the property (. for root, or a relative path)","type":"string"},"property":{"description":"Name of the exported property to set, e.g. \"initial_state\" or \"health\"","type":"string"},"scene_path":{"description":"Path to the .tscn scene file","type":"string"},"target_path":{"description":"Node it should point AT, relative to the scene root, e.g. \"StateMachine/Idle\"","type":"string"}},"required":["scene_path","node_path","property","target_path"],"type":"object"},"name":"set_node_reference"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Rename a node in a scene.","inputSchema":{"properties":{"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"new_name":{"description":"New name for the node","type":"string"},"node_path":{"description":"Path to the node to rename","type":"string"},"scene_path":{"description":"Path to the scene file","type":"string"}},"required":["scene_path","node_path","new_name"],"type":"object"},"name":"rename_node"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Move a node to a different parent in a scene and optionally control its position among siblings.","inputSchema":{"properties":{"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"new_parent_path":{"description":"Path to the new parent node (. for root)","type":"string"},"node_path":{"description":"Path to the node to move","type":"string"},"scene_path":{"description":"Path to the scene file","type":"string"},"sibling_index":{"description":"Optional position among siblings (0 = first child). Omit or -1 to append.","type":"number"}},"required":["scene_path","node_path","new_parent_path"],"type":"object"},"name":"move_node"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Duplicate a node and its children within the same scene, inserted right after the original as a sibling.","inputSchema":{"properties":{"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"new_name":{"description":"Optional name for the duplicate. Defaults to the original name with an incrementing number suffix.","type":"string"},"node_path":{"description":"Path to the node to duplicate (cannot be root)","type":"string"},"scene_path":{"description":"Path to the scene file","type":"string"}},"required":["scene_path","node_path"],"type":"object"},"name":"duplicate_node"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Add an instance of another scene (.tscn) as a child node. This is how you compose scenes from reusable parts (like prefabs). The instance maintains a live reference to the source scene. Use this instead of add_node when you want to reuse an existing scene.","inputSchema":{"properties":{"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"instance_path":{"description":"Path to the .tscn scene to instance (the child/prefab scene)","type":"string"},"node_name":{"description":"Optional name for the instance. If omitted, uses the instanced scene's root node name.","type":"string"},"parent_path":{"description":"Path to parent node within the scene (. for root, or relative path like Level/Enemies)","type":"string"},"properties":{"description":"Optional property overrides on the instance root (e.g., {position: {type: \"Vector3\", x: 5, y: 0, z: 10}})","type":"object"},"scene_path":{"description":"Path to the scene file being edited (the parent scene)","type":"string"}},"required":["scene_path","instance_path"],"type":"object"},"name":"instance_scene"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Attach or change a script on a node in a scene.","inputSchema":{"properties":{"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"node_path":{"description":"Path to the node (. for root, or relative path)","type":"string"},"scene_path":{"description":"Path to the scene file","type":"string"},"script_path":{"description":"Path to the script file (res://path/to/script.gd)","type":"string"}},"required":["scene_path","script_path"],"type":"object"},"name":"attach_script"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Connect a signal between two nodes inside a .tscn scene file. The target script must define the method (will refuse otherwise). Equivalent to clicking the \"+\" in the editor's Node > Signals panel and persists the connection to the .tscn. NOTE: scripts must be attached via attach_script (NOT via modify_node_property), otherwise the editor's in-memory node will not see the script and this tool will reject the connection.","inputSchema":{"properties":{"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"flags":{"description":"Connection flags (CONNECT_DEFERRED=1, CONNECT_PERSIST=2, CONNECT_ONE_SHOT=4). Default 0.","type":"number"},"from_node":{"description":"Path to the emitting node","type":"string"},"method":{"description":"Method name on the receiving node's script","type":"string"},"scene_path":{"type":"string"},"signal":{"description":"Signal name on the emitting node","type":"string"},"to_node":{"description":"Path to the receiving node","type":"string"}},"required":["scene_path","from_node","signal","to_node","method"],"type":"object"},"name":"connect_signal"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Apply many structural/property edits to ONE scene with a single load and a single save — much faster than N separate add_node/set_node_properties/... calls on a closed scene (each of those re-loads and re-saves the whole .tscn). For an open scene the whole batch lands on the live editor tree and marks it dirty (no disk write). Ops run in order; stop_on_error (default true) discards the entire batch — nothing saved — on the first failure. Op types: add_node {node_name,node_type,parent_path,properties?,script?,groups?,children?}, set_properties {node_path,properties}, remove_node {node_path}, rename_node {node_path,new_name}, move_node {node_path,new_parent_path,sibling_index?}.","inputSchema":{"properties":{"dry_run":{"description":"Preview only: do the work, report it, write nothing. Default false.","type":"boolean"},"operations":{"description":"Ordered edits. Each is an object with an \"op\" field and that op's args.","items":{"description":"{ op: \"add_node\"|\"set_properties\"|\"remove_node\"|\"rename_node\"|\"move_node\", ...args }","type":"object"},"type":"array"},"scene_path":{"description":"Path to the .tscn file","type":"string"},"stop_on_error":{"description":"Discard the whole batch (save nothing) on the first failing op. Default true.","type":"boolean"}},"required":["scene_path","operations"],"type":"object"},"name":"batch_scene_edit"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Create a NEW GDScript file (.gd) that does not exist yet. Use this for creating new scripts, NOT for editing existing files (use edit_script for edits). Use classdb_query to verify unfamiliar Godot class methods. After creating a script, consider using run_scene to test and get_errors to check for issues.","inputSchema":{"properties":{"content":{"description":"Full GDScript content to write to the file","type":"string"},"dry_run":{"description":"Preview only: checks the path and whether the file exists, writes nothing. Default false.","type":"boolean"},"path":{"description":"Script file path (res://scripts/player.gd) - must not exist yet","type":"string"}},"required":["path","content"],"type":"object"},"name":"create_script"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Apply a SMALL, SURGICAL code edit (1-10 lines) to GDScript files. Auto-applies changes. For large changes, call multiple times. ONLY for .gd files - NEVER for .tscn scene files. Use classdb_query to verify unfamiliar Godot class methods. After making changes, consider using run_scene to test and get_errors to check for issues.","inputSchema":{"properties":{"dry_run":{"description":"Preview only: reports whether the snippet matched and what it would produce, writes nothing. Default false.","type":"boolean"},"edit":{"description":"Edit spec: {type: \"snippet_replace\", file: \"res://path.gd\", old_snippet: \"old code\", new_snippet: \"new code\", context_before: \"line above\", context_after: \"line below\"}. Keep old_snippet SMALL (1-10 lines).","type":"object"}},"required":["edit"],"type":"object"},"name":"edit_script"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List all GDScript files in the project with basic metadata.","inputSchema":{"properties":{},"type":"object"},"name":"list_scripts"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Validate many GDScript files at once. Pass \"paths\" (array of res:// .gd paths) to check a specific set, or omit it to sweep the project (addons/ excluded unless include_addons). Returns only the invalid scripts, each with a message you can act on, plus elapsed_ms. PREFER an explicit paths list: validation runs on the editor's main thread at roughly 34ms per script, so a whole-project sweep on a large codebase is slow and can approach the bridge's 20s watchdog.","inputSchema":{"properties":{"include_addons":{"description":"Include res://addons/ in a whole-project sweep. Default false: plugin code is usually most of the files and is not yours to fix.","type":"boolean"},"paths":{"description":"res:// .gd paths to validate. Omit to sweep the project — but pass the files you changed instead when you know them.","items":{"type":"string"},"type":"array"}},"type":"object"},"name":"validate_scripts"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Permanently delete a file from the project. REQUIRES confirm=true as an explicit safety gate — omitting confirm returns an error. Creates a .bak backup alongside the original by default (disable with create_backup=false). REFUSES if the file is currently open in the editor (any scene tab or script editor tab); close the tab first, or pass force=true to bypass the check (not recommended — deleting the active scene out from under the editor can crash Godot). Use ONLY when deletion is explicitly requested; NEVER as a way to \"edit\" or \"reset\" a file (use edit_script instead). Does not delete directories.","inputSchema":{"properties":{"confirm":{"description":"Must be true — the safety gate described above.","type":"boolean"},"create_backup":{"description":"If true (default), saves a .bak copy next to the original before deletion so the file can be recovered. Set false to delete without backup.","type":"boolean"},"dry_run":{"description":"Preview without deleting. Default false. Needs no confirm — it changes nothing.","type":"boolean"},"force":{"description":"Bypass the \"open in editor\" guard. Only when you know it is not the active scene.","type":"boolean"},"path":{"description":"Path to the file to delete (e.g. res://scenes/old.tscn)","type":"string"}},"required":["path","confirm"],"type":"object"},"name":"delete_file"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Launch a scene in the Godot editor. Blocks until the editor is playing, so the next get_errors / take_screenshot call sees a real game. Use the returned runtime_root (e.g. \"/root/Main\") as the prefix for query_runtime_node paths — it comes from the root node name in the .tscn, NOT the file name. wait_for_runtime=true also waits for the in-game MCPRuntime helper, which take_screenshot and send_input need. Full loop: get_guide(\"testing-loop\").","inputSchema":{"properties":{"attach_debugger":{"description":"Default true (the editor's Play). False runs the game as its own process with no debugger: a game_eval runtime error then answers as a result instead of halting the game, at the cost of debug_* stepping and get_errors' Debugger>Errors source. See guide 'troubleshooting'.","type":"boolean"},"block_until_started":{"description":"Wait until the editor reports playing=true before returning (default: true). Up to startup_timeout_ms.","type":"boolean"},"debug_collisions":{"description":"Draw CollisionShape2D/3D outlines for this run, so take_screenshot shows them. Only takes effect on the run it is passed to — flipping it mid-session is unreliable. Default: false.","type":"boolean"},"scene":{"description":"Scene to run: omit for main scene, \"current\" for the currently open scene, or a res:// path for a specific scene","type":"string"},"startup_timeout_ms":{"description":"A cap, not an expected wait — MCPRuntime connects in ~1.7s. Default 20000. If wait_for_runtime reports false, poll get_runtime_status; it is usually about to land.","type":"number"},"wait_for_runtime":{"description":"Wait until the MCPRuntime in-game helper connects back (required for take_screenshot/send_input). Default: false.","type":"boolean"}},"type":"object"},"name":"run_scene"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Stop the currently running scene in the Godot editor. Always stop the scene before editing code to avoid errors repeating every frame.","inputSchema":{"properties":{},"type":"object"},"name":"stop_scene"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Compatibility shim: returns {playing, scene}. For richer info (uptime, runtime helper connectivity, last-launched target) prefer get_runtime_status.","inputSchema":{"properties":{},"type":"object"},"name":"is_playing"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Return entries from the MCPRuntime in-game ring buffer. The buffer holds the last ~500 lines pushed via MCPRuntime.push_runtime_log(level, text) from your scripts plus internal connection events. For full engine stdout (script prints, errors, warnings) use get_console_log — the editor already captures the running game's stdout. Returns entries with ts_ms, level, and text plus started_at_ms (when the helper started) and now_ms.","inputSchema":{"properties":{"level":{"description":"Only return entries of this level (e.g. \"error\", \"warning\", \"info\"). Omit for all.","enum":["error","warning","info"],"type":"string"},"limit":{"description":"Maximum entries to return (default: 200, max 500)","type":"number"},"since_ms":{"description":"Only return entries with ts_ms >= since_ms. Use 0 (default) for all.","type":"number"}},"type":"object"},"name":"get_runtime_log"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Capture the current viewport of the running game and save it as a PNG. REQUIRES the game to be running with the MCPRuntime autoload connected (run_scene with wait_for_runtime=true first). Returns resource_path, absolute_path, width, height, and (optionally) base64_png. Default save location is res://addons/godot_mcp/cache/screenshots/.","inputSchema":{"properties":{"return_base64":{"description":"Also include the PNG bytes inline as base64 (default: false). Useful when the agent has no filesystem access.","type":"boolean"},"save_to":{"description":"Optional res:// or user:// destination path. Defaults to res://addons/godot_mcp/cache/screenshots/screenshot_<ms>.png","type":"string"}},"type":"object"},"name":"take_screenshot"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Get errors and warnings from both the Godot Output panel and the Debugger > Errors tab. Returns file paths, line numbers, severity, stack traces, and which source each error came from. If errors mention a missing method or property, use classdb_query to verify the correct API before fixing.","inputSchema":{"properties":{"include_warnings":{"description":"Include warnings in addition to errors (default: true)","type":"boolean"},"max_errors":{"description":"Maximum number of errors to return (default: 50)","type":"number"}},"type":"object"},"name":"get_errors"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Return the latest lines from the Godot editor output log (as a single \"content\" string). Pass filter to keep only lines containing a substring — cheaper than pulling the whole log to find one message.","inputSchema":{"properties":{"filter":{"description":"Case-insensitive substring: only matching log lines are returned.","type":"string"},"max_lines":{"description":"Maximum number of lines to include (default: 50)","type":"number"}},"type":"object"},"name":"get_console_log"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Trigger a full filesystem rescan in the Godot editor. Use after creating, deleting, or modifying files externally (e.g. from the terminal or another tool). The scan is asynchronous and returns immediately. NOT enough for a new autoload or a new class_name — those need restart_editor.","inputSchema":{"properties":{},"type":"object"},"name":"rescan_filesystem"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Restart the Godot editor. Needed for two things a rescan cannot fix: an AUTOLOAD added this session, and a brand-new class_name. Until the editor restarts, every script referencing them fails to compile — and a node whose script failed to compile loses its exported properties, so create_scene/add_node write defaults and still report ok. Symptom: you set a property, the call succeeds, and the value is wrong when you read it back. The bridge disconnects with the editor; poll get_godot_status until it reconnects (usually 20-40s).","inputSchema":{"properties":{"save":{"description":"Save all open scenes and project settings before restarting. Default true. Setting false discards unsaved editor work.","type":"boolean"}},"type":"object"},"name":"restart_editor"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Render a 2D scene to a PNG WITHOUT running the game — the cheap way to actually look at a scene. take_screenshot needs a live game (launch, runtime connection, remembering to stop it); this renders offscreen in the editor, auto-framing the scene's content, and leaves no editor state changed. Use it to check layout, sprite placement, and whether a level looks like you think it does. 2D only.","inputSchema":{"properties":{"height":{"description":"Output height in pixels. Default 648.","type":"number"},"save_to":{"description":"Where to write the PNG. Defaults to res://addons/godot_mcp/cache/previews/<scene>.png","type":"string"},"scene_path":{"description":"Scene to render (res://path/to/scene.tscn)","type":"string"},"show_collision":{"description":"Draw CollisionShape2D/CollisionPolygon2D outlines (same visual as Godot's Debug > Visible Collision Shapes), so hitboxes can be checked from the PNG directly. Default false.","type":"boolean"},"transparent":{"description":"Transparent background instead of the scene's own. Default false.","type":"boolean"},"width":{"description":"Output width in pixels. Default 1152.","type":"number"}},"required":["scene_path"],"type":"object"},"name":"render_scene_preview"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Run a sequence of {tool, args} calls in ONE request instead of N round-trips — the way to build several scenes at once (batch_scene_edit covers only one). Dispatches inside the EDITOR, so it cannot reach tools that live in the running game (take_screenshot, send_input, query_runtime_node, game_eval, ...); call those directly. NOT a transaction: each scene tool still does its own load/save. stop_on_error halts at the first failure. Cannot be nested.","inputSchema":{"properties":{"operations":{"description":"Ordered list of {tool, args} to run. Max 100. e.g. [{\"tool\":\"add_node\",\"args\":{...}}, {\"tool\":\"set_node_properties\",\"args\":{...}}]","items":{"description":"{tool: string, args: object}","type":"object"},"type":"array"},"stop_on_error":{"description":"If true, stop at the first operation that returns ok:false. Default: false (run all).","type":"boolean"}},"required":["operations"],"type":"object"},"name":"batch_execute"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Recursively find all nodes of a given class (or subclass, unless exact_match) in a scene. Returns node_path/node_name/node_type for each match.","inputSchema":{"properties":{"exact_match":{"description":"If true, match exact class only (not subclasses). Default: false","type":"boolean"},"node_type":{"description":"Class name to match, e.g. \"CharacterBody2D\"","type":"string"},"scene_path":{"description":"Path to the scene file","type":"string"}},"required":["scene_path","node_type"],"type":"object"},"name":"find_nodes_by_type"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List a scene's resource dependencies (instanced sub-scenes, scripts, external resources) via ResourceLoader.get_dependencies — reads the file's dependency table directly, no need to load the scene.","inputSchema":{"properties":{"scene_path":{"description":"Path to the scene file","type":"string"}},"required":["scene_path"],"type":"object"},"name":"get_scene_dependencies"}]}}}
