{"at":"2026-11-23T05:53:26.164Z","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-23T05:53:26.440Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:53:26.541Z","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-23T05:53:26.830Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"instructions":"Open and control the Godot editor: inspect and edit the scene tree, node properties, scripts, resources, and project settings. Use these tools for editing scenes, scripts, resources, and import settings - DO NOT directly edit .tscn/.tres/.gd/.import files on disk: use read_script/write_script for .gd files, the scene and node tools for .tscn, the resource tools for .tres, get/set_import_settings for .import, and get/set_project_settings for project.godot. These tools validate your changes against the live editor state (invalid properties, node paths, and import options are caught immediately), and the Godot editor may have unsaved changes: direct file reads won't see those, and direct file edits may get overwritten by the editor later. Files with no matching tool (.gdshader, .json, images, docs) are fine to edit directly.\n\nEvery tool needs the absolute project_path, so that a tool can never be aimed at the wrong project: pass the path of the project you were asked about. Start with open_godot_project, which is safe to call when the project is already open - you do not need to check first.\n\nBefore any add/remove/edit, read get_current_scene_tree and only use node paths you've seen there. Node, scene and script edits are in-memory until save_scene or save_script. Most edits use the editor's undo/redo, so batch related changes into one call.\n\nA failed call returns isError with an 'errors' array and changed nothing, so fix the input and retry the tool - do not fall back to editing the file directly. A successful call may carry 'errors' and 'warnings' for the parts that had issues - warnings never affect 'success', and neither means that the whole call should be retried; address the listed items instead.","protocolVersion":"2025-11-25","serverInfo":{"name":"Godai","title":"Godai: AI agent integration with the Godot Engine","version":"0.5.0"}}}}
{"at":"2026-11-23T05:53:26.830Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:53:26.830Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:53:26.832Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Get Godai Settings"},"description":"Gets Godai's own settings, which configure Godai itself rather than anything inside the Godot project or editor.\n\nOnly the settings that can be changed at runtime are included; the rest come from command-line arguments.\n\nUse set_godai_settings to change them.","inputSchema":{"properties":{},"type":"object"},"name":"get_godai_settings","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"godot_version":{"description":"The version of Godot used by default, as named by list_installed_godot_versions; empty if none is configured","type":"string"},"project_base_path":{"description":"The base path where the user's Godot projects live; always empty unless MCP is running with --global","type":"string"},"update_check":{"description":"Whether godai checks for its own updates: \"on\", \"off\", or empty for the default (on)","type":"string"}},"type":"object"},"title":"Get Godai Settings"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Set Godai Settings"},"description":"Changes Godai's own settings, which configure Godai itself rather than anything inside the Godot project or editor.\n\nOnly the settings that can be changed at runtime can be set here; the rest come from command-line arguments.\n\nUse get_godai_settings to see the current values.","inputSchema":{"properties":{"godot_version":{"description":"The version of Godot to use by default; it must already be installed, which list_installed_godot_versions shows","type":"string"},"project_base_path":{"description":"The base path where the user's Godot projects live; can only be set when MCP is running with --global","type":"string"},"update_check":{"description":"Whether godai checks for its own updates","enum":["on","off"],"type":"string"}},"type":"object"},"name":"set_godai_settings","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the settings were changed and saved","type":"boolean"}},"type":"object"},"title":"Set Godai Settings"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Pin Project to Godot Version"},"description":"Records in the project which version of Godot it is built with, so that Godai always opens it with that version.\n\nThis is written to a .godai.json config file in the project, which is meant to be committed, so that everyone working on it opens the same editor.","inputSchema":{"properties":{"godot_version":{"description":"The version or linked name to pin the project to, which must already be installed","type":"string"},"project_path":{"description":"The absolute path to the project directory","type":"string"}},"required":["project_path","godot_version"],"type":"object"},"name":"pin_project_to_godot_version","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"godot_version":{"description":"The version the project is now pinned to","type":"string"},"success":{"description":"True if the project was pinned to that version","type":"boolean"}},"type":"object"},"title":"Pin Project to Godot Version"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Unpin Project from Godot Version"},"description":"Removes the version of Godot recorded in the project's .godai.json config file, leaving Godai to work out which version to open it with from the project itself.","inputSchema":{"properties":{"project_path":{"description":"The absolute path to the project directory","type":"string"}},"required":["project_path"],"type":"object"},"name":"unpin_project_from_godot_version","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the project is no longer pinned to a version of Godot","type":"boolean"},"was_pinned":{"description":"True if the project was pinned to begin with","type":"boolean"}},"type":"object"},"title":"Unpin Project from Godot Version"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"List Godot Projects"},"description":"Lists the Godot projects that are available to open.\n\nWhen the MCP is running with --global, this includes the projects registered in the project manager and those under the project base path.\nOtherwise, this recursively searches the allowed root paths.","inputSchema":{"properties":{},"type":"object"},"name":"list_projects","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"projects":{"description":"The Godot projects that were found","items":{"properties":{"project_name":{"description":"The project's configured name; omitted if it couldn't be read","type":"string"},"project_path":{"description":"The absolute path to the project directory","type":"string"}},"required":["project_path"],"type":"object"},"type":"array"}},"type":"object"},"title":"List Godot Projects"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Open Godot Project"},"description":"Opens a Godot project in a new Godot editor instance, if it isn't already open.\n\nSafe to call first for any project, open or not: one that is already open returns its running editor rather than starting a second one, so there is no need to check with list_open_projects beforehand.\n\nAn editor that is already open keeps the version of Godot and the headless setting it was started with: headless is ignored for it, and asking for a godot_version it isn't running is an error rather than a silent no-op. Check already_open in the result to see whether an editor was already there.","inputSchema":{"properties":{"godot_version":{"description":"Open the project with this version of Godot, regardless of the version the project itself asks for, installing it if it isn't installed yet. Use a version from list_installed_godot_versions. Leave this out to let Godai work out the version, which is almost always what you want: opening a project with a newer version of Godot than it was made with upgrades the project.","type":"string"},"headless":{"default":false,"description":"Launch the editor without visual or audio output (default: false)","type":"boolean"},"project_path":{"description":"The absolute path to the project directory","type":"string"}},"required":["project_path"],"type":"object"},"name":"open_godot_project","outputSchema":{"properties":{"already_open":{"description":"True if an editor was already running for this project, in which case headless was ignored and godot_version, if it was given, matched what that editor is running","type":"boolean"},"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the project was already open, or a new editor instance was started for it","type":"boolean"}},"type":"object"},"title":"Open Godot Project"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"List Open Godot Projects"},"description":"Lists the projects currently open in a Godot editor, which version of Godot each one is open in, and whether that editor is headless.","inputSchema":{"properties":{},"type":"object"},"name":"list_open_projects","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"projects":{"description":"The projects that are currently open in a Godot editor","items":{"properties":{"godot_version":{"description":"The version of Godot this project is open in, named the way list_installed_godot_versions names it; omitted if the editor wouldn't say","type":"string"},"headless":{"description":"True if the editor running this project is headless, so it has no visible window","type":"boolean"},"project_name":{"description":"The project's configured name; omitted if it couldn't be read","type":"string"},"project_path":{"description":"The absolute path to the project directory","type":"string"}},"required":["project_path","headless"],"type":"object"},"type":"array"}},"type":"object"},"title":"List Open Godot Projects"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Restart Editor"},"description":"Restarts the Godot editor for the project.\n\nThe user is asked to confirm first, and the call fails if they decline. A headless editor restarts without asking.\n\nBy default, unsaved changes are saved before restarting; pass 'skip_save' as true to discard them instead.\n\nIf the project is running, it is stopped first.","inputSchema":{"properties":{"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"skip_save":{"description":"Discard unsaved changes instead of saving them before restarting (default: false)","type":"boolean"}},"type":"object"},"name":"restart_editor","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True once the editor has restarted and reconnected","type":"boolean"}},"type":"object"},"title":"Restart Editor"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Create Resource"},"description":"Creates a new resource.\n\nDoes NOT open it automatically.\n\nProperty values are strings in Godot variant syntax:\n- String properties take the raw string, with NO extra quotes (e.g. \"resource_name\": \"My Resource\")\n- Other types use Godot syntax, e.g. `0.5`, `true`, `Vector2(1, 2)`, `Color(1, 0, 0, 1)`\n- Packed arrays take a flat list of components, so: `PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1)` is two colors (r,g,b,a, r,g,b,a), `PackedVector2Array(1, 2, 3, 4)` is two vectors\n- To reference a saved resource: `Resource(\"res://path/to/file.tres\")`\n- To create an embedded resource: `Object(ClassName, \"prop\": value, ...)`, e.g. `Object(SphereMesh,\"radius\":2.0)`, or `Object(SphereMesh)` for one with every property at its default. Do NOT use SubResource() or ExtResource() - those only work inside .tscn files.\n- Integer enum properties take the option name (e.g. `Nearest`) or the integer value; setting one by integer returns a note with the matching option name, and an integer matching no option is still applied, with a warning\n\nEvery property is verified by reading it back after setting, like set_resource_properties. The resource is still created and saved even when a property fails: properties that could not be set, or that ended up with a different value than requested, are reported in 'warnings' (with anything Godot printed in 'output'). Do NOT retry the call over a warning - the file now exists; fix the property with set_resource_properties instead.","inputSchema":{"properties":{"file_path":{"description":"Path to the .tres file to create, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"properties":{"additionalProperties":{"description":"The property value as a string, in Godot variant syntax (see the tool description)","type":"string"},"description":"Keys are the Godot property names to set","type":"object"},"resource_type":{"description":"The resource type","minLength":1,"type":"string"}},"required":["file_path","resource_type"],"type":"object"},"name":"create_resource","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did, in which case the resource was NOT created","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. the option name matching an integer enum value that was set","items":{"type":"string"},"type":"array"},"output":{"description":"Messages Godot printed while the resource was being created","items":{"type":"string"},"type":"array"},"success":{"description":"True if the resource was created and saved; property problems are reported in 'warnings' and do not affect this - do NOT retry the call for them, fix them with set_resource_properties instead","type":"boolean"},"warnings":{"description":"Properties that could not be set, or ended up with a different value than requested; any property not listed here was set to the requested value","items":{"type":"string"},"type":"array"}},"type":"object"},"title":"Create Resource"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Save Scene"},"description":"Saves the scene currently open in the editor to its file.\n\nIf the scene has never been saved, use save_scene_as instead.","inputSchema":{"properties":{"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"type":"object"},"name":"save_scene","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"scene_path":{"description":"The path the scene was saved to","type":"string"},"success":{"description":"True if the scene was saved","type":"boolean"}},"type":"object"},"title":"Save Scene"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Open Script"},"description":"Opens a script file in the editor's script editor.","inputSchema":{"properties":{"file_path":{"description":"Path to the .gd file to open, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["file_path"],"type":"object"},"name":"open_script","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the script was opened in the script editor","type":"boolean"}},"type":"object"},"title":"Open Script"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Get Import Settings"},"description":"Gets the import settings for an imported asset (e.g. a texture or audio file).\n\nOption values are strings in Godot variant syntax.","inputSchema":{"properties":{"file_path":{"description":"Path to the imported asset, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["file_path"],"type":"object"},"name":"get_import_settings","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"importer":{"description":"The name of the importer used for this asset","type":"string"},"options":{"additionalProperties":{"type":"string"},"description":"A map of import option names to values, in Godot variant syntax","type":"object"}},"type":"object"},"title":"Get Import Settings"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Clear Log Messages"},"description":"Clears the log messages captured so far, so subsequent get_log_messages calls only return output from after this point.\n\nThis only affects the captured messages; the editor's own Output panel is untouched.","inputSchema":{"properties":{"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"type":"object"},"name":"clear_log_messages","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the captured log messages were cleared","type":"boolean"}},"type":"object"},"title":"Clear Log Messages"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Get Resource Properties"},"description":"Gets the values of properties on a saved resource file (e.g. a .tres file).\n\nOnly properties whose value differs from the resource's default are returned; pass 'include_defaults' as true to also include properties left at their default value.\n\nProperties that Godot neither saves nor shows in the inspector are left out, since they're inactive given the resource's other properties (e.g. `alpha_scissor_threshold` on a material that isn't using alpha scissor); name one in 'properties' to read it anyway.\n\nProperty values are strings in Godot variant syntax:\n- String properties are returned raw, without quotes\n- Other types use Godot syntax, e.g. `0.5`, `true`, `Vector2(1, 2)`, `Color(1, 0, 0, 1)`\n- Packed arrays take a flat list of components, so: `PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1)` is two colors (r,g,b,a, r,g,b,a), `PackedVector2Array(1, 2, 3, 4)` is two vectors\n- A property referencing another saved resource is returned as `Resource(\"res://path/to/file.tres\")`\n- A property holding an embedded resource is summarized as `Object(ClassName)`, e.g. `Object(FastNoiseLite)`\n- Integer enum properties are returned as their option name (e.g. `Nearest` instead of `0`), with a note pointing out the translation; pass 'enums_as_ints' as true to get the raw integer values instead\n\nRequested properties may use colon-separated sub-paths to address properties nested inside embedded resources or other properties, e.g. `noise:frequency` or `albedo_color:r`.\n\nThe results are returned in 'properties', keyed by property name (or requested property path).\nIf a requested property holds an embedded resource (e.g. `noise`), all of that resource's properties are returned for it, instead of just a summary.\nIf a requested property can't be resolved, its value will be an object with an `error` key.","inputSchema":{"properties":{"enums_as_ints":{"description":"Return integer enum properties as their raw integer value, instead of translated to the option name (default: false)","type":"boolean"},"file_path":{"description":"Path to the resource file, relative to the project root","minLength":1,"type":"string"},"include_defaults":{"description":"Also include properties left at their default value (default: false)","type":"boolean"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"properties":{"description":"The properties to get. If omitted, all of the resource's properties are returned.","items":{"description":"The name of a property to get (colon-separated sub-paths allowed, e.g. `albedo_color:r`)","type":"string"},"type":"array"}},"required":["file_path"],"type":"object"},"name":"get_resource_properties","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. which integer enum properties were translated to their option name","items":{"type":"string"},"type":"array"},"properties":{"additionalProperties":{"oneOf":[{"additionalProperties":{"type":"string"},"description":"A map of property names to values (in Godot variant syntax) - used both for the whole resource and for a requested property that holds an embedded resource - or an object with an 'error' key if the property path couldn't be resolved.","type":"object"},{"description":"A single property value, in Godot variant syntax","type":"string"}]},"description":"If 'properties' was omitted, a map of all the resource's property names to values. If 'properties' was given, a map of each requested property path to its result.","type":"object"}},"type":"object"},"title":"Get Resource Properties"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Get Selected Nodes"},"description":"Gets the nodes currently selected in the editor for the current scene.\n\nIf nothing is selected, 'node_paths' is an empty array.","inputSchema":{"properties":{"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"type":"object"},"name":"get_selected_nodes","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"node_paths":{"description":"Paths of the selected nodes, relative to the scene root","items":{"type":"string"},"type":"array"}},"type":"object"},"title":"Get Selected Nodes"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Save Script"},"description":"Saves a script's unsaved changes from the editor to its file.\n\nIf the script is open in the editor, its current (possibly unsaved) contents are written to disk. If it isn't open, there is nothing to save and this is a no-op.","inputSchema":{"properties":{"file_path":{"description":"Path to the .gd file, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["file_path"],"type":"object"},"name":"save_script","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"saved":{"description":"True if the script was open and its contents were written to disk; false if it wasn't open (nothing to save)","type":"boolean"},"success":{"description":"True if the operation succeeded","type":"boolean"}},"type":"object"},"title":"Save Script"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Get Log Messages"},"description":"Gets recent log output from the editor (print() output, warnings, and errors) captured since the editor started.\n\nMessages are sorted oldest first. Includes messages from both the editor and games run via `run_project`.\n\nEach line is prefixed with the local time it was captured, as '[HH:MM:SS.mmm]', so identical lines from different moments can be told apart.","inputSchema":{"properties":{"count":{"description":"Maximum number of recent messages to return (default: 100). Use 0 for all retained messages.","type":"integer"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"type":"object"},"name":"get_log_messages","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"messages":{"description":"The most recent log lines, oldest first","items":{"type":"string"},"type":"array"}},"type":"object"},"title":"Get Log Messages"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Execute Editor Script"},"description":"Executes the given GDScript code in the editor, in the context of a Node that is a child of the scene currently being edited.\n\nFor modifying the current scene, use the other tools when possible.\n\nHowever, if you do use a script to modify the current scene, you MUST use `EditorUndoRedoManager` from `EditorInterface.get_editor_undo_redo()`, and the action name MUST end with \"(Godai)\".\n\nYou can find nodes relative to the scene root using `EditorInterface.get_edited_scene_root().get_node_or_null(node_path)`.\n\nTwo helper methods have been provided:\n- `func editor_undo_redo_create_node(p_undo_redo: EditorUndoRedoManager, p_parent: Node, p_child: Node) -> void`\n- `func editor_undo_redo_remove_node(p_undo_redo: EditorUndoRedoManager, p_parent: Node, p_child: Node) -> void`\n\nIf you are using `EditorUndoRedoManager` to add or remove a node, you MUST call one of those helper methods before calling `commit_action()`. This will add some `add_do_method()` and `add_undo_method()` calls to ensure the changes are synchronized to the live game if the game is running.\n\nIf the script successfully runs, the output from `print()` will be returned.","inputSchema":{"properties":{"code":{"contentMediaType":"text/x-gdscript","description":"A snippet of GDScript code. It should use tabs rather than spaces for indentation. Don't wrap the code in a `_ready()` function.","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["code"],"type":"object"},"name":"execute_editor_script","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"output":{"description":"The lines printed by the script via print()","items":{"type":"string"},"type":"array"},"success":{"description":"True if the script ran successfully","type":"boolean"}},"type":"object"},"title":"Execute Editor Script"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Close Editor"},"description":"Closes the Godot editor for the project.\n\nThe user is asked to confirm first, and the call fails if they decline. A headless editor closes without asking.\n\nBy default, unsaved changes are saved before closing; pass 'skip_save' as true to discard them instead.\n\nIf the project is running, it is stopped first.","inputSchema":{"properties":{"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"skip_save":{"description":"Discard unsaved changes instead of saving them before closing (default: false)","type":"boolean"}},"type":"object"},"name":"close_editor","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True once the user has accepted and the editor is closing","type":"boolean"}},"type":"object"},"title":"Close Editor"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Get Project Settings"},"description":"Gets settings from the project (the values stored in 'project.godot', e.g. 'application/config/name' or 'display/window/size/viewport_width').\n\nPass 'names' to get specific settings by name (returned regardless of whether they match their default).\nOtherwise, all settings are returned, but only those whose value differs from the default; pass 'include_defaults' as true to also include settings left at their default value.\n\nSetting values are strings in Godot variant syntax.\nInteger enum settings are returned as their option name (e.g. `Nearest` instead of `0`), with a note pointing out the translation; pass 'enums_as_ints' as true to get the raw integer values instead.","inputSchema":{"properties":{"enums_as_ints":{"description":"Return integer enum settings as their raw integer value, instead of translated to the option name (default: false)","type":"boolean"},"include_defaults":{"description":"When getting all settings, also include those left at their default value (default: false)","type":"boolean"},"names":{"description":"Specific setting names to get. If omitted, all settings are returned.","items":{"type":"string"},"type":"array"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"type":"object"},"name":"get_project_settings","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. which integer enum settings were translated to their option name","items":{"type":"string"},"type":"array"},"settings":{"additionalProperties":{"type":"string"},"description":"A map of setting name to value, in Godot variant syntax","type":"object"}},"type":"object"},"title":"Get Project Settings"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Open Scene"},"description":"Opens a scene in the editor.","inputSchema":{"properties":{"file_path":{"description":"Path to the .tscn file to open, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["file_path"],"type":"object"},"name":"open_scene","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the scene was opened","type":"boolean"}},"type":"object"},"title":"Open Scene"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Remove Node"},"description":"Removes the given node (and all its children) from the current scene.\n\nLike all scene edits, the change is in-memory until save_scene: call it once you're done editing, or it is lost.","inputSchema":{"properties":{"node_path":{"description":"Path to the node, relative to the scene root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["node_path"],"type":"object"},"name":"remove_node","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. that the scene has unsaved changes until save_scene","items":{"type":"string"},"type":"array"},"success":{"description":"True if the node was removed","type":"boolean"}},"type":"object"},"title":"Remove Node"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Set Resource Properties"},"description":"Sets the values of properties on a saved resource file (.tres or .res), and saves the changes to the file.\n\nOnly pass the properties you wish to change. To discover the properties a resource supports (and their current values), call get_resource_properties with \"include_defaults\": true.\nEXAMPLE: {\"action\": \"Change color\", \"file_path\": \"res://thing.tres\", \"properties\": {\"albedo_color\": \"Color(1, 0, 0, 1)\"}}\n\nProperty values are strings in Godot variant syntax:\n- String properties take the raw string, with NO extra quotes (e.g. \"resource_name\": \"My Resource\")\n- Other types use Godot syntax, e.g. `0.5`, `true`, `Vector2(1, 2)`, `Color(1, 0, 0, 1)`\n- Packed arrays take a flat list of components, so: `PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1)` is two colors (r,g,b,a, r,g,b,a), `PackedVector2Array(1, 2, 3, 4)` is two vectors\n- To reference another saved resource: `Resource(\"res://path/to/file.tres\")`\n- To create an embedded resource: `Object(ClassName, \"prop\": value, ...)`, e.g. `Object(FastNoiseLite,\"frequency\":0.1)`, or `Object(FastNoiseLite)` for one with every property at its default. Do NOT use SubResource() or ExtResource() - those only work inside .tscn files.\n- Careful: `Object(ClassName)` is also how an existing embedded resource reads back, so passing that in replaces it with a new one, losing whatever it held.\n- Integer enum properties take the option name (e.g. `Nearest`) or the integer value; setting one by integer returns a note with the matching option name, and an integer matching no option is still applied, with a warning\n\nProperty names may use colon-separated sub-paths to set properties nested inside embedded resources or other properties, e.g. `noise:frequency`, `albedo_color:r`.\n\nNote: the changes are saved to the file immediately, and affect every scene using the resource.\n\nThis uses the Godot editor's undo/redo system to set the properties, so as many set operations as possible should be done in a single call, so they can all be undone at once (undo also re-saves the file).\n\nEvery property is verified by reading it back after setting, like set_node_properties. Properties are set independently: when one fails, the rest are still applied and saved. Properties that could not be set are reported in 'errors', and properties that ended up with a different value than requested (e.g. clamped by their setter) are reported in 'warnings', along with the actual resulting value. Anything Godot printed while setting is returned in 'output'.\n\nIf none of the properties can even be attempted, the call fails and nothing is changed.","inputSchema":{"properties":{"action":{"description":"Human-readable description of the action that will be shown in Godot's undo/redo history","minLength":1,"type":"string"},"file_path":{"description":"Path to the .tres or .res file, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"properties":{"additionalProperties":{"description":"The property value as a string, in Godot variant syntax (see the tool description)","type":"string"},"description":"Keys are the Godot property names to set (colon-separated sub-paths allowed, e.g. `albedo_color:r`)","type":"object"}},"required":["action","file_path"],"type":"object"},"name":"set_resource_properties","outputSchema":{"properties":{"errors":{"description":"When the call failed, the errors that made it fail (nothing was changed). Otherwise, properties that could not be set; any property not listed here or in 'warnings' was set to the requested value","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. the option name matching an integer enum value that was set","items":{"type":"string"},"type":"array"},"output":{"description":"Messages Godot printed while the properties were being set","items":{"type":"string"},"type":"array"},"success":{"description":"True if every property was verified to have taken the requested value (a property that only triggered a warning still counts as success)","type":"boolean"},"warnings":{"description":"Properties that were changed, but ended up with a different value than requested","items":{"type":"string"},"type":"array"}},"type":"object"},"title":"Set Resource Properties"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Instantiate Scene"},"description":"Instantiates a saved scene (.tscn/.scn) as a child node in the current scene, like adding an instanced scene in the editor.\n\nLike all scene edits, the new instance is in-memory until save_scene: call it once you're done editing, or it is lost.","inputSchema":{"properties":{"name":{"description":"Name for the new instance node","type":"string"},"parent_path":{"default":".","description":"Path to the parent node, relative to the scene root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"scene_path":{"description":"Path to the scene file to instantiate, relative to the project root","minLength":1,"type":"string"}},"required":["scene_path"],"type":"object"},"name":"instantiate_scene","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"node_path":{"description":"The path of the new instance node, relative to the scene root","type":"string"},"notes":{"description":"Notes that don't indicate a problem, e.g. that the scene has unsaved changes until save_scene","items":{"type":"string"},"type":"array"},"success":{"description":"True if the scene was instantiated","type":"boolean"}},"type":"object"},"title":"Instantiate Scene"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Remove Node from Groups"},"description":"Removes a node in the current scene from one or more groups.\n\nLike all scene edits, the change is in-memory until save_scene: call it once you're done editing, or it is lost.","inputSchema":{"properties":{"groups":{"description":"The groups to remove the node from","items":{"description":"A group name","type":"string"},"minItems":1,"type":"array"},"node_path":{"description":"Path to the node, relative to the scene root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["node_path","groups"],"type":"object"},"name":"remove_from_group","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. that the scene has unsaved changes until save_scene","items":{"type":"string"},"type":"array"},"success":{"description":"True if the node was removed from the groups","type":"boolean"}},"type":"object"},"title":"Remove Node from Groups"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Attach Script"},"description":"Attaches an existing script file to a node in the current scene.\n\nThe script's base type must be compatible with the node's type.\n\nUse create_script first if the script doesn't exist yet.\n\nLike all scene edits, the attachment is in-memory until save_scene: call it once you're done editing, or it is lost.","inputSchema":{"properties":{"node_path":{"description":"Path to the node, relative to the scene root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"script_path":{"description":"Path to the script file, relative to the project root","minLength":1,"type":"string"}},"required":["node_path","script_path"],"type":"object"},"name":"attach_script","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. that the scene has unsaved changes until save_scene","items":{"type":"string"},"type":"array"},"success":{"description":"True if the script was attached","type":"boolean"}},"type":"object"},"title":"Attach Script"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Run Project"},"description":"Runs the project from the editor.\n\n'scene' controls what runs: omit it or use 'main' to run the project's main scene, 'current' to run the scene open in the editor, or a path to run a specific scene file.","inputSchema":{"properties":{"clear_log_messages":{"description":"Clear the captured log messages before running, so get_log_messages only returns output from this run onward (default: false)","type":"boolean"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"scene":{"description":"What to run: 'main' (default), 'current', or a path to a scene file","type":"string"}},"type":"object"},"name":"run_project","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the project started running","type":"boolean"}},"type":"object"},"title":"Run Project"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Get Current Scene"},"description":"Gets information about the scene that is currently opened in the Godot editor.","inputSchema":{"properties":{"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"type":"object"},"name":"get_current_scene","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"root_node_name":{"description":"The name of the root Node","type":"string"},"root_node_type":{"description":"The class of the root Node","type":"string"},"scene_path":{"description":"The path to the scene file, or '[unsaved]' for a never-saved scene","type":"string"}},"type":"object"},"title":"Get Current Scene"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Get Scene Tree"},"description":"Gets the tree for the scene that is currently opened in the Godot editor.","inputSchema":{"properties":{"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"type":"object"},"name":"get_current_scene_tree","outputSchema":{"description":"A node in the scene tree. Children share this same structure.","properties":{"children":{"description":"The child nodes; omitted if the node has no children","items":{"$ref":"#"},"type":"array"},"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"name":{"description":"The Node name","type":"string"},"path":{"description":"The path of the node within the scene, relative to the scene root","type":"string"},"script":{"description":"The path to the script file, if this node has a script attached; otherwise omitted","type":"string"},"type":{"description":"The class of the Node","type":"string"}},"type":"object"},"title":"Get Scene Tree"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Get Node Properties"},"description":"Gets the values of properties on specific nodes in the current scene.\n\nOnly properties whose value differs from the node's default are returned; pass 'include_defaults' as true to also include properties left at their default value.\n\nProperties that Godot neither saves nor shows in the inspector are left out, since they're derived from other properties (e.g. `global_position` comes from `transform`) or inactive given the node's other properties; ask for one by name (e.g. `MyNode:global_position`) to read it anyway.\n\nProperty values are strings in Godot variant syntax:\n- String properties are returned raw, without quotes\n- Other types use Godot syntax, e.g. `0.5`, `true`, `Vector2(1, 2)`, `Color(1, 0, 0, 1)`\n- Packed arrays take a flat list of components, so: `PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1)` is two colors (r,g,b,a, r,g,b,a), `PackedVector2Array(1, 2, 3, 4)` is two vectors\n- A property referencing a saved resource is returned as `Resource(\"res://path/to/file.tres\")`\n- A property holding an embedded resource is summarized as `Object(ClassName)`, e.g. `Object(SphereMesh)`\n- Integer enum properties are returned as their option name (e.g. `Nearest` instead of `0`), with a note pointing out the translation; pass 'enums_as_ints' as true to get the raw integer values instead\n\nTo inspect the properties of an embedded resource, append a colon-separated property path to the node path: `MyMesh:mesh` returns the properties of the mesh resource, and `MyMesh:mesh:radius` returns just that value.\n\nThe per-node results are returned in 'nodes', keyed by the requested node path.\nIf any of the node paths can't be found, an error is returned and no properties are read. If a property path can't be resolved, its value will be an object with an `error` key.","inputSchema":{"properties":{"enums_as_ints":{"description":"Return integer enum properties as their raw integer value, instead of translated to the option name (default: false)","type":"boolean"},"include_defaults":{"description":"Also include properties left at their default value (default: false)","type":"boolean"},"node_paths":{"description":"The nodes to get properties from","items":{"description":"The path to the node within the scene, relative to the scene root. May include a colon-separated property path (e.g. `MyMesh:mesh`) to inspect a resource or other sub-object.","type":"string"},"minItems":1,"type":"array"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["node_paths"],"type":"object"},"name":"get_node_properties","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"nodes":{"additionalProperties":{"oneOf":[{"additionalProperties":{"type":"string"},"description":"A map of property names to values (in Godot variant syntax), or an object with an 'error' key if a property path couldn't be resolved.","type":"object"},{"description":"A single property value (in Godot variant syntax), when the node path resolved to a scalar via a colon-separated property path.","type":"string"}]},"description":"Maps each requested node path to its result.","type":"object"},"notes":{"description":"Notes that don't indicate a problem, e.g. which integer enum properties were translated to their option name","items":{"type":"string"},"type":"array"}},"type":"object"},"title":"Get Node Properties"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Save Scene As"},"description":"Saves the scene currently open in the editor to the given path, changing the path of the current scene, such that subsequent save_scene calls would save to the new path.","inputSchema":{"properties":{"file_path":{"description":"Path to the .tscn file to save to, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["file_path"],"type":"object"},"name":"save_scene_as","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"scene_path":{"description":"The path the scene was saved to","type":"string"},"success":{"description":"True if the scene was saved","type":"boolean"}},"type":"object"},"title":"Save Scene As"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Get Node Groups"},"description":"Gets the groups that nodes in the current scene belong to.\n\nThe results are returned in 'nodes', keyed by the requested node path.","inputSchema":{"properties":{"node_paths":{"description":"The nodes to get the groups of","items":{"description":"Path to a node, relative to the scene root","type":"string"},"minItems":1,"type":"array"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["node_paths"],"type":"object"},"name":"get_node_groups","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"nodes":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"description":"Maps each requested node path to an array of its group names (internal engine groups omitted).","type":"object"}},"type":"object"},"title":"Get Node Groups"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Disconnect Signal"},"description":"Disconnects a previously-connected signal between two nodes in the current scene.\n\nLike all scene edits, the change is in-memory until save_scene: call it once you're done editing, or it is lost.","inputSchema":{"properties":{"from_node":{"description":"Path to the node emitting the signal, relative to the scene root","minLength":1,"type":"string"},"method":{"description":"Name of the connected method on the receiving node","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"signal":{"description":"Name of the signal to disconnect","minLength":1,"type":"string"},"to_node":{"description":"Path to the node receiving the signal, relative to the scene root","minLength":1,"type":"string"}},"required":["from_node","signal","to_node","method"],"type":"object"},"name":"disconnect_signal","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. that the scene has unsaved changes until save_scene","items":{"type":"string"},"type":"array"},"success":{"description":"True if the signal was disconnected","type":"boolean"}},"type":"object"},"title":"Disconnect Signal"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Set Node Properties"},"description":"Sets the values of properties on specific nodes in the current scene.\n\nOnly pass the properties you wish to change. To discover the properties a node supports (and their current values), call get_node_properties with \"include_defaults\": true.\nEXAMPLE: {\"action\": \"Move node\", \"nodes\": {\"path/to/node\": {\"position\": \"Vector2(1, 2)\"}}}\n\nProperty values are strings in Godot variant syntax:\n- String properties take the raw string, with NO extra quotes (e.g. \"text\": \"Hello\")\n- Other types use Godot syntax, e.g. `0.5`, `true`, `Vector2(1, 2)`, `Color(1, 0, 0, 1)`, `NodePath(\"../Other\")`\n- Packed arrays take a flat list of components, so: `PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1)` is two colors (r,g,b,a, r,g,b,a), `PackedVector2Array(1, 2, 3, 4)` is two vectors\n- To reference a saved resource: `Resource(\"res://path/to/file.tres\")`\n- To create an embedded resource: `Object(ClassName, \"prop\": value, ...)`, e.g. `Object(SphereMesh,\"radius\":2.0)`, or `Object(SphereMesh)` for one with every property at its default. Do NOT use SubResource() or ExtResource() - those only work inside .tscn files.\n- Careful: `Object(ClassName)` is also how an existing embedded resource reads back, so passing that in replaces it with a new one, losing whatever it held.\n- Integer enum properties take the option name (e.g. `Nearest`) or the integer value; setting one by integer returns a note with the matching option name, and an integer matching no option is still applied, with a warning\n\nProperty names may use colon-separated sub-paths to set properties nested inside resources or other properties, e.g. `mesh:radius`, `material:albedo_color`, `position:x`.\n\nNote: changing a sub-property of a saved resource (`Resource(\"res://...\")`) affects every scene using that resource.\n\nThis uses the Godot editor's undo/redo system to set the properties, so as many set operations as possible should be done in a single call, so they can all be undone at once.\n\nLike all scene edits, the changes are in-memory until save_scene: call it once you're done editing, or they are lost.\n\nEvery property is verified by reading it back after setting. Properties are set independently: when one fails, the rest are still applied. Properties that could not be set are reported in 'errors', and properties that ended up with a different value than requested (e.g. clamped by their setter) are reported in 'warnings', along with the actual resulting value. Anything Godot printed while setting is returned in 'output'.\n\nIf none of the properties can even be attempted, the call fails and nothing is changed.\n\nNote: verification happens immediately after setting, so a property the engine adjusts later (e.g. the position of a Control inside a container) can still end up with a different value.","inputSchema":{"properties":{"action":{"description":"Human-readable description of the action that will be shown in Godot's undo/redo history","minLength":1,"type":"string"},"nodes":{"additionalProperties":{"additionalProperties":{"description":"The property value as a string, in Godot variant syntax (see the tool description)","type":"string"},"description":"Keys are the Godot property names to set (colon-separated sub-paths allowed, e.g. `mesh:radius`)","type":"object"},"description":"Keys are the paths of the nodes to change, within the scene and relative to its root. A key may include a colon-separated property path (e.g. `MyMesh:mesh`) to address a resource or other sub-object.","minProperties":1,"type":"object"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["action","nodes"],"type":"object"},"name":"set_node_properties","outputSchema":{"properties":{"errors":{"description":"When the call failed, the errors that made it fail (nothing was changed). Otherwise, properties that could not be set; any property not listed here or in 'warnings' was set to the requested value","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. that the scene has unsaved changes until save_scene, or the option name matching an integer enum value that was set","items":{"type":"string"},"type":"array"},"output":{"description":"Messages Godot printed while the properties were being set","items":{"type":"string"},"type":"array"},"success":{"description":"True if every property was verified to have taken the requested value (a property that only triggered a warning still counts as success)","type":"boolean"},"warnings":{"description":"Properties that were changed, but ended up with a different value than requested","items":{"type":"string"},"type":"array"}},"type":"object"},"title":"Set Node Properties"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Add Node"},"description":"Creates a new node in the current scene, with the given properties set.\n\nProperty values are strings in Godot variant syntax:\n- String properties take the raw string, with NO extra quotes (e.g. \"name\": \"MyNode\")\n- Other types use Godot syntax, e.g. `0.5`, `true`, `Vector2(1, 2)`, `Color(1, 0, 0, 1)`, `NodePath(\"../Other\")`\n- Packed arrays take a flat list of components, so: `PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1)` is two colors (r,g,b,a, r,g,b,a), `PackedVector2Array(1, 2, 3, 4)` is two vectors\n- To reference a saved resource: `Resource(\"res://path/to/file.tres\")`\n- To create an embedded resource: `Object(ClassName, \"prop\": value, ...)`, e.g. `Object(SphereMesh,\"radius\":2.0)`, or `Object(SphereMesh)` for one with every property at its default. Do NOT use SubResource() or ExtResource() - those only work inside .tscn files.\n- Integer enum properties take the option name (e.g. `Nearest`) or the integer value; setting one by integer returns a note with the matching option name, and an integer matching no option is still applied, with a warning\n\nLike all scene edits, the new node is in-memory until save_scene: call it once you're done editing, or it is lost.\n\nEvery property is verified by reading it back after setting, like set_node_properties. The node is still created even when a property fails: properties that could not be set, or that ended up with a different value than requested, are reported in 'warnings' (with anything Godot printed in 'output'), and 'node_path' says where the node ended up. Do NOT retry the call over a warning - that would create a second node; fix the property with set_node_properties instead.","inputSchema":{"properties":{"node_type":{"description":"The name of the node class to create","minLength":1,"type":"string"},"parent_path":{"default":".","description":"Path to the parent node, relative to the scene root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"properties":{"additionalProperties":{"description":"The property value as a string, in Godot variant syntax (see the tool description)","type":"string"},"description":"Keys are the Godot property names to set","type":"object"}},"required":["node_type"],"type":"object"},"name":"add_node","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did, in which case the node was NOT created","items":{"type":"string"},"type":"array"},"node_path":{"description":"The path of the new node, relative to the scene root","type":"string"},"notes":{"description":"Notes that don't indicate a problem, e.g. that the scene has unsaved changes until save_scene, or the option name matching an integer enum value that was set","items":{"type":"string"},"type":"array"},"output":{"description":"Messages Godot printed while the node was being created","items":{"type":"string"},"type":"array"},"success":{"description":"True if the node was created; property problems are reported in 'warnings' and do not affect this - do NOT retry the call for them, fix them with set_node_properties instead","type":"boolean"},"warnings":{"description":"Properties that could not be set, or ended up with a different value than requested; any property not listed here was set to the requested value","items":{"type":"string"},"type":"array"}},"type":"object"},"title":"Add Node"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Reimport Assets"},"description":"Reimports one or more asset files (e.g. after changing the source file or its import settings).\n\nEach path must be an imported asset (i.e. have a .import file).\n\nOn error, nothing is reimported.","inputSchema":{"properties":{"file_paths":{"description":"The assets to reimport","items":{"description":"Path to an imported asset, relative to the project root","type":"string"},"minItems":1,"type":"array"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["file_paths"],"type":"object"},"name":"reimport","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the assets were reimported","type":"boolean"}},"type":"object"},"title":"Reimport Assets"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Get Editor Settings"},"description":"Gets settings from the Godot editor itself (the values stored in the global editor configuration, e.g. 'text_editor/behavior/indent/size' or 'text_editor/appearance/whitespace/draw_tabs'). These are editor-wide preferences, not project settings.\n\nPass 'names' to get specific settings by name (returned regardless of whether they match their default).\nOtherwise, all settings are returned, but only those whose value differs from the default; pass 'include_defaults' as true to also include settings left at their default value.\n\nSetting values are strings in Godot variant syntax.\nInteger enum settings are returned as their option name (e.g. `Nearest` instead of `0`), with a note pointing out the translation; pass 'enums_as_ints' as true to get the raw integer values instead.\n\nSettings under 'godai/' are Godai's own configuration and are never returned; only the user can see them, via Editor Settings.","inputSchema":{"properties":{"enums_as_ints":{"description":"Return integer enum settings as their raw integer value, instead of translated to the option name (default: false)","type":"boolean"},"include_defaults":{"description":"When getting all settings, also include those left at their default value (default: false)","type":"boolean"},"names":{"description":"Specific setting names to get. If omitted, all settings are returned.","items":{"type":"string"},"type":"array"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"type":"object"},"name":"get_editor_settings","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. which integer enum settings were translated to their option name","items":{"type":"string"},"type":"array"},"settings":{"additionalProperties":{"type":"string"},"description":"A map of setting name to value, in Godot variant syntax","type":"object"}},"type":"object"},"title":"Get Editor Settings"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Read Script"},"description":"Reads the contents of a script file.\n\nIf the script is currently open in the editor, its live (possibly unsaved) buffer is returned and 'open_in_editor' is true. Otherwise the contents are read from disk.","inputSchema":{"properties":{"file_path":{"description":"Path to the .gd file, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["file_path"],"type":"object"},"name":"read_script","outputSchema":{"properties":{"content":{"contentMediaType":"text/x-gdscript","description":"The contents of the script (the live editor buffer if open, otherwise the file on disk)","type":"string"},"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"open_in_editor":{"description":"True if the script is currently open in the editor (so 'content' is the live buffer)","type":"boolean"}},"type":"object"},"title":"Read Script"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Stop Project"},"description":"Stops the running project, if any.","inputSchema":{"properties":{"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"type":"object"},"name":"stop_project","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True (the running project, if any, was stopped)","type":"boolean"}},"type":"object"},"title":"Stop Project"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Set Project Settings"},"description":"Changes settings in the project and saves 'project.godot'.\n\nPass 'settings': a map of setting name (e.g. 'display/window/size/viewport_width') to value. Values are strings in Godot variant syntax (e.g. `1280`, `true`, `2.0`); a value that isn't valid variant syntax is taken as a raw string.\nAn integer enum setting takes the option name (e.g. `Nearest`) or the integer value; setting one by integer returns a note with the matching option name, and an integer matching no option is still applied, with a warning.\n\nSetting names must already exist; unknown names are rejected. Pass \"create_missing\": true to create new settings, e.g. custom game settings, 'autoload/...', 'input/...', 'shader_globals/...' or 'global_group/...'. A feature-tag override of an existing setting (e.g. 'application/config/name.web') counts as existing, and its value is validated against the base setting.\n\nEvery setting is verified by reading it back after setting. Settings are set independently: when one fails, the rest are still applied (and saved). Settings that could not be set are reported in 'errors', and settings that ended up with a different value than requested are reported in 'warnings', along with the actual resulting value. Anything Godot printed while setting is returned in 'output'.\n\nSome settings only take effect after the editor restarts; changing one returns a warning, and the restart_editor tool can perform the restart.\n\nIf none of the settings can even be attempted, the call fails and nothing is changed.\n\nUse get_project_settings to see the available setting names and their current values.","inputSchema":{"properties":{"create_missing":{"description":"Allow creating settings that don't exist yet; without it, unknown setting names are rejected","type":"boolean"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"settings":{"additionalProperties":{"description":"The setting value, as a string in Godot variant syntax","type":"string"},"description":"Settings to set (keys are setting names)","minProperties":1,"type":"object"}},"required":["settings"],"type":"object"},"name":"set_project_settings","outputSchema":{"properties":{"errors":{"description":"When the call failed, the errors that made it fail (nothing was changed). Otherwise, settings that could not be set; any setting not listed here or in 'warnings' was set to the requested value","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. the option name matching an integer enum value that was set","items":{"type":"string"},"type":"array"},"output":{"description":"Messages Godot printed while the settings were being set","items":{"type":"string"},"type":"array"},"success":{"description":"True if every setting was verified to have taken the requested value and the project was saved (a setting that only triggered a warning still counts as success)","type":"boolean"},"warnings":{"description":"Settings that were changed, but ended up with a different value than requested, or that require an editor restart to take effect","items":{"type":"string"},"type":"array"}},"type":"object"},"title":"Set Project Settings"},{"annotations":{"openWorldHint":false,"readOnlyHint":true,"title":"Open Resource"},"description":"Opens a resource in the inspector.","inputSchema":{"properties":{"file_path":{"description":"Path to the .tres file to open, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["file_path"],"type":"object"},"name":"open_resource","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the resource was opened in the inspector","type":"boolean"}},"type":"object"},"title":"Open Resource"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Add Node to Groups"},"description":"Adds a node in the current scene to one or more groups.\n\nLike all scene edits, the change is in-memory until save_scene: call it once you're done editing, or it is lost.","inputSchema":{"properties":{"groups":{"description":"The groups to add the node to","items":{"description":"A group name","type":"string"},"minItems":1,"type":"array"},"node_path":{"description":"Path to the node, relative to the scene root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["node_path","groups"],"type":"object"},"name":"add_to_group","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. that the scene has unsaved changes until save_scene","items":{"type":"string"},"type":"array"},"success":{"description":"True if the node was added to the groups","type":"boolean"}},"type":"object"},"title":"Add Node to Groups"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Connect Signal"},"description":"Connects a signal on one node to a method on another node, in the current scene.\n\nBoth nodes must be in the current scene. The signal must exist on 'from_node', and the method on 'to_node'.\n\nLike all scene edits, the connection is in-memory until save_scene: call it once you're done editing, or it is lost.","inputSchema":{"properties":{"from_node":{"description":"Path to the node emitting the signal, relative to the scene root","minLength":1,"type":"string"},"method":{"description":"Name of the method to call on the receiving node","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"signal":{"description":"Name of the signal to connect","minLength":1,"type":"string"},"to_node":{"description":"Path to the node receiving the signal, relative to the scene root","minLength":1,"type":"string"}},"required":["from_node","signal","to_node","method"],"type":"object"},"name":"connect_signal","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. that the scene has unsaved changes until save_scene","items":{"type":"string"},"type":"array"},"success":{"description":"True if the signal was connected","type":"boolean"}},"type":"object"},"title":"Connect Signal"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Detach Script"},"description":"Removes the script attached to a node in the current scene.\n\nLike all scene edits, the change is in-memory until save_scene: call it once you're done editing, or it is lost.","inputSchema":{"properties":{"node_path":{"description":"Path to the node, relative to the scene root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["node_path"],"type":"object"},"name":"detach_script","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. that the scene has unsaved changes until save_scene","items":{"type":"string"},"type":"array"},"success":{"description":"True if the script was detached","type":"boolean"}},"type":"object"},"title":"Detach Script"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Set Editor Settings"},"description":"Changes settings in the Godot editor itself (editor-wide preferences, not project settings).\n\nPass 'settings': a map of setting name (e.g. 'text_editor/behavior/indent/size') to value. Values are strings in Godot variant syntax (e.g. `16`, `true`, `2.0`); a value that isn't valid variant syntax is taken as a raw string.\nAn integer enum setting takes the option name (e.g. `Nearest`) or the integer value; setting one by integer returns a note with the matching option name, and an integer matching no option is still applied, with a warning.\n\nSetting names must already exist; unknown names are rejected. Pass \"create_missing\": true to create a setting that doesn't exist yet (e.g. one belonging to a plugin that isn't currently loaded).\n\nEvery setting is verified by reading it back after setting. Settings are set independently: when one fails, the rest are still applied. Settings that could not be set are reported in 'errors', and settings that ended up with a different value than requested are reported in 'warnings', along with the actual resulting value. Anything Godot printed while setting is returned in 'output'.\n\nSome settings only take effect after the editor restarts; changing one returns a warning, and the restart_editor tool can perform the restart.\n\nIf none of the settings can even be attempted, the call fails and nothing is changed.\n\nUse get_editor_settings to see the available setting names and their current values.\n\nSettings under 'godai/' are Godai's own configuration and can't be changed; only the user can, via Editor Settings.","inputSchema":{"properties":{"create_missing":{"description":"Allow creating settings that don't exist yet; without it, unknown setting names are rejected","type":"boolean"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"settings":{"additionalProperties":{"description":"The setting value, as a string in Godot variant syntax","type":"string"},"description":"Settings to set (keys are setting names)","minProperties":1,"type":"object"}},"required":["settings"],"type":"object"},"name":"set_editor_settings","outputSchema":{"properties":{"errors":{"description":"When the call failed, the errors that made it fail (nothing was changed). Otherwise, settings that could not be set; any setting not listed here or in 'warnings' was set to the requested value","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. the option name matching an integer enum value that was set","items":{"type":"string"},"type":"array"},"output":{"description":"Messages Godot printed while the settings were being set","items":{"type":"string"},"type":"array"},"success":{"description":"True if every setting was verified to have taken the requested value (a setting that only triggered a warning still counts as success)","type":"boolean"},"warnings":{"description":"Settings that were changed, but ended up with a different value than requested, or that require an editor restart to take effect","items":{"type":"string"},"type":"array"}},"type":"object"},"title":"Set Editor Settings"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Create Scene"},"description":"Creates a new scene and opens it in the editor.","inputSchema":{"properties":{"file_path":{"description":"Path to the .tscn file to create, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"},"root_node_type":{"description":"The node type of the scene's root node","minLength":1,"type":"string"}},"required":["file_path","root_node_type"],"type":"object"},"name":"create_scene","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the scene was created and opened","type":"boolean"}},"type":"object"},"title":"Create Scene"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Create Script"},"description":"Creates a new GDScript file.\n\nDoes NOT open or attach it.\n\nIf 'content' is given, it is used as the file's contents. Otherwise, a minimal script extending 'base_class' is generated.","inputSchema":{"properties":{"base_class":{"description":"Base class for the generated script when 'content' is omitted (default: Node)","type":"string"},"content":{"contentMediaType":"text/x-gdscript","description":"Full contents of the script file. If omitted, a minimal template is generated.","type":"string"},"file_path":{"description":"Path to the .gd file to create, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["file_path"],"type":"object"},"name":"create_script","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the script file was created","type":"boolean"}},"type":"object"},"title":"Create Script"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Write Script"},"description":"Replaces the entire contents of an existing script file.\n\nYou must read the script with read_script first: this fails if the script has changed since you last read it (or created/wrote it), so you don't overwrite edits you haven't seen. If it fails for that reason, read the script again and reapply your change.\n\nIf the script is open in the editor, its editor buffer is updated instead of the file on disk (so unsaved edits aren't silently clobbered); 'saved' will be false, and you can call save_script to write it to disk. If it isn't open, the file is written directly and 'saved' is true.\n\nUse create_script to make a new script.","inputSchema":{"properties":{"content":{"contentMediaType":"text/x-gdscript","description":"The full new contents of the script, which may be empty to blank the script out","type":"string"},"file_path":{"description":"Path to the .gd file, relative to the project root","minLength":1,"type":"string"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["file_path","content"],"type":"object"},"name":"write_script","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"notes":{"description":"Notes that don't indicate a problem, e.g. that the script has unsaved changes until save_script","items":{"type":"string"},"type":"array"},"open_in_editor":{"description":"True if the script was open, so its editor buffer was updated rather than the file on disk","type":"boolean"},"saved":{"description":"True if the new contents were written to disk; false if only the editor buffer was updated (call save_script to flush it)","type":"boolean"},"success":{"description":"True if the script was written","type":"boolean"}},"type":"object"},"title":"Write Script"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Set Import Settings"},"description":"Changes the import settings for an imported asset, and reimports it.\n\nOnly pass the options you wish to change.\n\nOption values are strings in Godot variant syntax (e.g. `2`, `true`, `2.0`); a value that isn't valid variant syntax is taken as a raw string.\n\nAn unknown option name fails the whole call. On error, nothing is changed.\n\nUse get_import_settings to see the available option names and the current importer.","inputSchema":{"properties":{"file_path":{"description":"Path to the imported asset, relative to the project root","minLength":1,"type":"string"},"importer":{"description":"Change the importer used for this asset","type":"string"},"options":{"additionalProperties":{"description":"The option value, as a string in Godot variant syntax","type":"string"},"description":"Import options to set (keys are option names)","type":"object"},"project_path":{"description":"The path to the Godot project. It must already be open in the Godot editor.","type":"string"}},"required":["file_path"],"type":"object"},"name":"set_import_settings","outputSchema":{"properties":{"errors":{"description":"The errors that caused the call to fail; present instead of the other properties when it did","items":{"type":"string"},"type":"array"},"success":{"description":"True if the import settings were changed and the asset was reimported","type":"boolean"}},"type":"object"},"title":"Set Import Settings"}]}}}
