breakpoint-mcp
v1.95.0MCP server exposing Godot to AI coding assistants over the Model Context Protocol — developed and tested with Claude — across four planes (CLI, live…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
godot_version Godot version
Return the version string of the configured Godot binary.
godot_launch_editor Launch editor
Open the Godot editor for the configured project (detached). Needed before any editor_* bridge tool can be used.
godot_run_project Run project
Run the project (detached). Optionally start from a specific scene path (res://...). WAITS until the game's runtime bridge answers ping and reports bridge_ready — the game takes roughly half a second to three seconds to bind it, and no runtime_* tool is reachable before it does. Refuses if the runtime bridge port is already bound — the new game could not host the bridge, and every runtime_* call would address the process already holding the port. Use runtime_spawn_peers to drive more than one game at once.
| Parameter | Type | Description |
|---|---|---|
allow_port_conflict | boolean | Start even though the runtime bridge port is already bound (default false). The new game's runtime bridge will NOT be reachable — use only when you want the process for its side effects and will not… |
scene | string | Optional scene to run, e.g. res://levels/test.tscn |
wait_timeout_ms | integer | How long to wait for the runtime bridge to answer ping, in ms (default 15000, the runtime bridge's own deadline). 0 returns as soon as the process is spawned, reporting bridge_ready false and bridge_w… |
godot_export Export project
Headless export using an export preset. Runs to completion and returns exit code + logs. Can be slow — exposed as an MCP task, so a task-aware client can poll it or cancel it while it runs.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | Output file path for the exported build |
preset * | string | Export preset name as defined in export_presets.cfg |
debug | boolean | Export a debug build instead of release (default false) |
timeout_ms | integer | Max run time (default 600000) |
godot_import Import assets
Headless (re)import of project assets. Runs to completion and returns exit code + logs. Exposed as an MCP task, so a task-aware client can poll it or cancel it while it runs.
| Parameter | Type | Description |
|---|---|---|
timeout_ms | integer | Max run time (default 600000) |
breakpoint_doctor Diagnose the setup
Check this Breakpoint MCP setup end to end: the Godot binary, the editor addon's install and enable state, the capability groups in force, and the editor/runtime/LSP/DAP bridges. Returns a per-check status with a hint for anything wrong. Read-only — run it first when an editor_*, runtime_*, gd_* or dbg_* tool fails to connect.
| Parameter | Type | Description |
|---|---|---|
include_csharp | boolean | Also probe OmniSharp / netcoredbg on PATH (the C# planes) |
live_level | string | Which bridges this report insists on: none (default), editor (the three the editor brings up), runtime (the one the running game brings up), all. Takes precedence over require_live. |
require_live | boolean | Treat an unreachable bridge as a failure rather than information (default false). True means the EDITOR's three bridges — editor, GDScript LSP, GDScript DAP. The runtime bridge lives inside the runn… |
timeout_ms | integer | Per-bridge connect timeout (default 1500) |
breakpoint_ports Who holds the ports
Who holds each port this server dials — editor and runtime bridges, GDScript LSP and DAP, live peers: held or free, each holder's pid and program, and whether this server started it. Read-only. Use it when a launch is refused over a held port or a bridge will not answer.
editor_ping Ping editor bridge
Check that the editor is running with the Breakpoint MCP plugin enabled.
editor_get_state Editor state
Return the currently edited scene, its root type/path, and the current node selection.
editor_undo Undo last edit
Undo the most recent edit in the editor's undo history (like Ctrl-Z). Defaults to the edited scene's history; pass scope='global' for the editor-wide history. Returns whether an action was undone, its name, and the remaining undo/redo depth.
| Parameter | Type | Description |
|---|---|---|
scope | string | Which history to step: 'scene' (default, the edited scene) or 'global' (editor-wide) |
editor_redo Redo last undone edit
Re-apply the most recently undone edit in the editor's undo history (like Ctrl-Shift-Z). Defaults to the edited scene's history; pass scope='global' for the editor-wide history.
| Parameter | Type | Description |
|---|---|---|
scope | string | Which history to step: 'scene' (default, the edited scene) or 'global' (editor-wide) |
project_get_info Project info
Return project name, main scene, project root path, Godot version, and feature tags.
project_get_setting Get project setting
Read a single ProjectSettings value by dotted key (e.g. application/config/name).
| Parameter | Type | Description |
|---|---|---|
name * | string | ProjectSettings key |
project_set_setting Set project setting
Write a ProjectSettings value. Set save=true to persist to project.godot. DESTRUCTIVE — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
name * | string | ProjectSettings key |
value * | New value; rich types use the {"__type__":...} tagging convention | |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
save | boolean | Persist to disk (default false) |
scene_get_tree Get scene tree
Return the node tree of the currently edited scene (name, type, path, script, children).
| Parameter | Type | Description |
|---|---|---|
max_depth | integer | Max recursion depth (default 64) |
scene_open Open scene
Open an existing scene in the editor by res:// path.
| Parameter | Type | Description |
|---|---|---|
path * | string | Scene path, e.g. res://scenes/main.tscn |
scene_save Save scene
Save the currently edited scene to its existing path.
scene_new New scene
Create a new scene with the given root class, save it to a path, and open it. DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
path * | string | Where to save, e.g. res://scenes/new.tscn |
root_type * | string | Root node class, e.g. Node2D, Node3D, Control |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
name | string | Root node name (defaults to the class name) |
overwrite | boolean | Replace if it exists |
scene_list_open List open scenes
List the res:// paths of all scenes open in the editor, which one is current, and which have unsaved changes. Read-only.
scene_reload Reload scene from disk
Reload a scene from disk, discarding unsaved changes to it. DESTRUCTIVE — gated by confirmation. Defaults to the current scene.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Skip the confirmation prompt (auto-approve) |
path | string | Scene res:// path; omitted = the current edited scene |
scene_close Close current scene
Close the current scene tab, discarding unsaved changes. DESTRUCTIVE — gated by confirmation. Only the current scene can be closed; pass its path to assert which one.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Skip the confirmation prompt (auto-approve) |
path | string | Optional assertion: must equal the current edited scene's path |
scene_pack Pack branch as scene
Save a node branch (the node and its subtree) as a new PackedScene file. DESTRUCTIVE (writes a file) — gated by confirmation. Does not modify the edited scene.
| Parameter | Type | Description |
|---|---|---|
path * | string | Branch root node path relative to the scene root |
to_path * | string | Where to save the PackedScene, e.g. res://scenes/branch.tscn |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Replace if it exists |
scene_get_dependencies Scene dependencies
List the external resource dependencies of a scene file. Read-only. Defaults to the current scene. `dependencies` are loadable res:// paths; `dependencies_raw` carries the engine's own `uid://…::::res://…` encoding and `dependency_uids` the UID alone ("" when the dependency has none) — all three index-aligned.
| Parameter | Type | Description |
|---|---|---|
path | string | Scene res:// path; omitted = the current edited scene |
scene_save_as Save scene as
Save the current scene to a new res:// path (Save As). DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
path * | string | Destination path, e.g. res://scenes/copy.tscn |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
node_add Add node
Instance a node of the given class under a parent path (undoable). Returns the new node's path.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
type * | string | Node class to instance, e.g. Sprite2D, AudioStreamPlayer3D |
name | string | Node name (defaults to the class name) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
node_delete Delete node
Delete a node (undoable). DESTRUCTIVE — gated by confirmation. Refuses to delete the scene root.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
node_rename Rename node
Rename a node (undoable).
| Parameter | Type | Description |
|---|---|---|
new_name * | string | New node name |
path * | string | Node path relative to the scene root |
node_reparent Reparent node
Move a node under a new parent (undoable).
| Parameter | Type | Description |
|---|---|---|
new_parent_path * | string | New parent path; "." for the root |
path * | string | Node path relative to the scene root |
keep_global_transform | boolean | Preserve global transform (default true) |
node_set_property Set node property
Set a property on a node (undoable). Rich types use the {"__type__":"Vector3","x":..} convention. Example value for position: {"__type__":"Vector3","x":1,"y":0,"z":2}.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
property * | string | Property name, e.g. position, modulate, text |
value * | New value (JSON scalar, array, object, or a __type__-tagged Variant) |
node_get_property Get node property
Read a single property from a node. Rich types come back __type__-tagged.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
property * | string | Property name |
node_duplicate Duplicate node
Duplicate a node and its children under the same parent (undoable). Returns the new node's path.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
name | string | Name for the duplicate (defaults to the source node's name) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
node_get_children Get node children
List the direct children of a node (name, type, path). Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root; "." for the root |
node_find Find nodes
Search a node's descendants by class and/or name substring (case-insensitive). Read-only.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max matches to return (default 200) |
name_contains | string | Only match nodes whose name contains this substring |
root_path | string | Where to search from; "." or omitted for the scene root |
type | string | Only match nodes of this class (is_class), e.g. Sprite2D |
node_list_groups List node groups
List the groups a node belongs to. Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
node_add_to_group Add node to group
Add a node to a group (persistent, undoable). No-op if already a member.
| Parameter | Type | Description |
|---|---|---|
group * | string | Group name |
path * | string | Node path relative to the scene root |
node_remove_from_group Remove node from group
Remove a node from a group (undoable). No-op if not a member.
| Parameter | Type | Description |
|---|---|---|
group * | string | Group name |
path * | string | Node path relative to the scene root |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
node_instantiate_scene Instance scene under node
Instance an external PackedScene (res:// path) as an editable child of a parent node (undoable). Returns the new node's path.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
scene_path * | string | Scene to instance, e.g. res://actors/enemy.tscn |
name | string | Node name (defaults to the instanced scene's root name) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
node_move_child Move child
Reorder a node among its siblings by index (undoable). Negative indices count from the end (-1 = last).
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
to_index * | integer | New sibling index (0-based; negative counts from the end) |
node_change_type Change node type
Replace a node with a new node of a different class, carrying over compatible properties, children, and groups (undoable). Refuses the scene root.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
type * | string | New node class, e.g. Sprite2D, StaticBody3D |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
node_set_owner Set node owner
Set a node's owner (undoable). Owner must be an ancestor; "." or omitted sets the scene root. Ownership determines which scene a node is saved into.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
owner_path | string | Ancestor to own the node; "." or omitted for the scene root |
node_set_editable_instance Set editable-instance (editable children)
Toggle "Editable Children" on an instanced sub-scene (undoable). When enabled, property overrides on the instance's internal nodes serialize into the saved scene; without it the sub-scene is sealed and its internals revert on reload. This is what lets author-time edits (e.g. card_instance slot data) be baked into the .tscn.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path of the instanced sub-scene, relative to the scene root |
editable | boolean | Enable (true, default) or disable editable children |
node_get_path Get node path
Return a node's scene-relative path, class, sibling index, parent path, and child count. Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root; "." for the root |
node_list_properties List node properties
List a node's inspector-visible properties (name, Variant type, class_name, usage flags). Read-only. Use node_get_property to read a value.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
signal_list List node signals
List the signals a node declares (name and argument names), including user signals. Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
signal_list_connections List signal connections
List a node's outgoing signal connections (signal, target node path, method, flags). Optionally filter to one signal. Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
signal | string | Only list connections for this signal |
signal_connect Connect signal
Connect a source node's signal to a target node's method (undoable). Persistent by default (flags=2, CONNECT_PERSIST) so it saves into the scene. No-op if already connected.
| Parameter | Type | Description |
|---|---|---|
method * | string | Method to call on the target |
path * | string | Source node path (emitter) |
signal * | string | Signal name on the source |
target_path * | string | Target node path (receiver) |
flags | integer | Object.ConnectFlags bitmask (default 2 = CONNECT_PERSIST) |
signal_disconnect Disconnect signal
Disconnect a source node's signal from a target node's method (undoable). No-op if not connected.
| Parameter | Type | Description |
|---|---|---|
method * | string | Connected method on the target |
path * | string | Source node path (emitter) |
signal * | string | Signal name on the source |
target_path * | string | Target node path (receiver) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
signal_add_user_signal Add user signal
Declare a new user signal on a node (undoable). Optional typed arguments. Errors if the signal already exists.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
signal * | string | New signal name |
args | array | Signal parameters (name + Variant type int) |
signal_emit Emit signal (edit-time)
Emit a signal from a node in the EDITED scene, firing its connected callables now. DESTRUCTIVE (edit-time side effects) — gated by confirmation. Args use the tagged-Variant convention.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
signal * | string | Signal name |
args | array | Signal arguments (JSON scalars or __type__-tagged Variants) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
selection_get Get selection
Return the paths of the nodes currently selected in the editor.
selection_set Set selection
Replace the editor's node selection with the given node paths.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Node paths relative to the scene root |
main_screen_get Get the active main-screen tab
Report which main-screen editor tab is active (2D / 3D / Script / …) and which are available. Read-only. The active tab decides which viewport screenshot_editor can actually capture: Godot collapses the inactive tab's viewport to a few pixels.
main_screen_set Switch the main-screen tab
Switch the editor's main-screen tab (2D / 3D / Script / …), matching the name case-insensitively. Use this before screenshot_editor to make the viewport you want to capture the active one — opening a scene does NOT switch the tab. Returns the resulting state, read back from the editor rather than echoed. An unknown name comes back with the live list of available tabs.
| Parameter | Type | Description |
|---|---|---|
name * | string | Tab name as the editor reports it, case-insensitive — e.g. "2D", "3D", "Script" |
classdb_get_class Introspect class
Return the parent class, methods, properties, and signals of an engine class via ClassDB.
| Parameter | Type | Description |
|---|---|---|
class_name * | string | Engine class name, e.g. AudioStreamPlayer3D |
include_inherited | boolean | Include inherited members (default false) |
class_reference Class reference
Full engine-class reference via ClassDB: method SIGNATURES (return type + typed args), signal signatures, and typed properties — the detailed view classdb_get_class summarises as bare names. Read-only. Includes the canonical online docs URL. Pass member to filter to a single method/property/signal.
| Parameter | Type | Description |
|---|---|---|
class_name * | string | Engine class name, e.g. AudioStreamPlayer3D |
include_inherited | boolean | Include inherited members (default false) |
member | string | Only return members whose name contains this substring |
docs_search Search the class reference
Search the Godot class reference (ClassDB) by keyword — matching class names and, unless a scope narrows it, their methods/properties/signals — and return each hit with its canonical docs URL. Read-only. Use kind to restrict to one member type, class_name to scope to a single class, and limit to bound results.
| Parameter | Type | Description |
|---|---|---|
query * | string | Case-insensitive substring to match against class / member names |
class_name | string | Scope the member search to a single class (still returns class-name matches project-wide) |
deep | boolean | Also scan members, not just class names (default true) |
kind | string | Restrict to one result kind (default any) |
limit | integer | Max results before truncation (default 40) |
screenshot_editor Screenshot editor viewport
Capture the 2D or 3D editor viewport as a PNG as image content so the assistant can see the scene. The requested viewport's tab must be the ACTIVE main-screen tab, and this tool refuses with viewport_not_active when it is not: a hidden tab's viewport is either a few pixels or a full-size stale frame that looks exactly like a good capture. It also refuses with window_not_drawing when the editor window is off screen or headless: Godot draws nothing then. A fresh editor is on the 3D tab and opening a scene does NOT switch it, so to capture 2d call main_screen_set {"name":"2D"} first AND pass {"vi…
| Parameter | Type | Description |
|---|---|---|
viewport | string | Which viewport (default 3d) |
resource_create Create resource
Instantiate a Resource subclass and save it as a new file. DESTRUCTIVE (writes a file) — gated by confirmation. Optional initial properties use the tagged-Variant convention.
| Parameter | Type | Description |
|---|---|---|
class_name * | string | Resource subclass to instantiate, e.g. StyleBoxFlat, Theme, GDScript |
to_path * | string | Destination res:// path, e.g. res://styles/panel.tres |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Replace if it exists |
properties | object | Initial property values (JSON scalars or __type__-tagged Variants) |
resource_load Load resource
Load a resource file and return its class, resource_name, and inspector-visible property list. Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string | Resource res:// path |
resource_save Save resource
Load a resource and (re-)save it, optionally to a new path and with ResourceSaver flags. DESTRUCTIVE (writes a file) — gated by confirmation. Shares subresources by reference; use resource_duplicate for an independent copy.
| Parameter | Type | Description |
|---|---|---|
from_path * | string | Source resource res:// path |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
flags | integer | ResourceSaver.SaverFlags bitmask (e.g. 32 = FLAG_COMPRESS) |
overwrite | boolean | Replace if it exists |
to_path | string | Destination res:// path (default: overwrite from_path) |
resource_duplicate Duplicate resource
Load a resource, duplicate it (optionally deep, cloning subresources), and save the copy to a new path. DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
path * | string | Source resource res:// path |
to_path * | string | Destination res:// path for the copy |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
deep | boolean | Deep-duplicate subresources (default false) |
overwrite | boolean | Replace if it exists |
resource_get_property Get resource property
Read a single property of a resource file by name. Read-only. The value comes back tagged (Variant convention).
| Parameter | Type | Description |
|---|---|---|
path * | string | Resource res:// path |
property * | string | Property name |
resource_set_property Set resource property
Set a single property on a resource file and save it. DESTRUCTIVE (writes a file) — gated by confirmation. The value uses the tagged-Variant convention.
| Parameter | Type | Description |
|---|---|---|
path * | string | Resource res:// path |
property * | string | Property name |
value * | New value (JSON scalar or __type__-tagged Variant) | |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
resource_get_import_settings Get import settings
Read an asset's import metadata (.import): the importer and its parameters. Read-only. Returns imported=false when the file exists but has no .import sidecar; errors not_found when the path is not a file (matching resource_load).
| Parameter | Type | Description |
|---|---|---|
path * | string | Asset res:// path (e.g. res://icon.png) |
resource_set_import_settings Set import settings
Update import parameters in an asset's .import metadata and trigger a reimport. DESTRUCTIVE (rewrites metadata + reimports) — gated by confirmation. Errors not_found when the path is not a file, not_imported when the file has no .import sidecar. `settings` echoes every key set; `changed` lists only those whose stored value actually moved, so a no-op is distinguishable from a real edit.
| Parameter | Type | Description |
|---|---|---|
path * | string | Asset res:// path |
settings * | object | Import params to set (name -> JSON scalar or __type__-tagged Variant) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
reimport | boolean | Reimport after writing (default true) |
filesystem_list List project directory
List the subdirectories and files of a directory in the project filesystem (hidden entries like .godot are skipped). Read-only.
| Parameter | Type | Description |
|---|---|---|
path | string | Directory res:// path (default res://) |
filesystem_scan Rescan filesystem
Trigger an editor rescan of the project filesystem so newly added or externally-changed files are picked up. Read-only side effect.
filesystem_move Move / rename file
Move or rename a file or directory within the project (carrying its .import sidecar), then rescan. DESTRUCTIVE (moves on disk; does NOT remap references in other resources) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
from_path * | string | Source res:// path (file or directory) |
to_path * | string | Destination res:// path |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
filesystem_create_dir Create directory
Create a directory (recursively) in the project filesystem, then rescan. No-op if it already exists.
| Parameter | Type | Description |
|---|---|---|
path * | string | Directory res:// path to create |
anim_player_create Create AnimationPlayer
Add an AnimationPlayer node under a parent (undoable). Seeds an empty default animation library so anim_create works immediately.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
name | string | Node name (default "AnimationPlayer") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
anim_create Create animation
Create an empty Animation in an AnimationPlayer's library (undoable). Creates the library if it does not exist yet.
| Parameter | Type | Description |
|---|---|---|
name * | string | Animation name (unique within its library) |
player_path * | string | AnimationPlayer node path relative to the scene root |
library | string | Animation library name (default "", the player's default library) |
anim_delete Delete animation
Delete an Animation from an AnimationPlayer's library (undoable). DESTRUCTIVE — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
name * | string | Animation name |
player_path * | string | AnimationPlayer node path relative to the scene root |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
library | string | Animation library name (default "") |
anim_add_track Add animation track
Add a track to an Animation and set its target path (undoable). Returns the new track index.
| Parameter | Type | Description |
|---|---|---|
name * | string | Animation name |
path * | string | Track target: a node path, or "Node:property" for value tracks (e.g. "Sprite2D:position") |
player_path * | string | AnimationPlayer node path |
library | string | Animation library name (default "") |
type | string | Track type: value (default), position_3d, rotation_3d, scale_3d, blend_shape, method, bezier, audio, animation |
anim_insert_key Insert animation key
Insert a keyframe on a track at a given time (undoable). A key already at that exact time is overwritten.
| Parameter | Type | Description |
|---|---|---|
name * | string | Animation name |
player_path * | string | AnimationPlayer node path |
time * | number | Key time in seconds |
track * | integer | Track index |
value * | Key value (JSON scalar, array, object, or a __type__-tagged Variant matching the track type) | |
library | string | Animation library name (default "") |
transition | number | Transition curve exponent (default 1.0) |
anim_remove_key Remove animation key
Remove a keyframe by index from a track (undoable).
| Parameter | Type | Description |
|---|---|---|
key * | integer | Key index within the track |
name * | string | Animation name |
player_path * | string | AnimationPlayer node path |
track * | integer | Track index |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
library | string | Animation library name (default "") |
anim_set_length Set animation length
Set an Animation's length in seconds (undoable).
| Parameter | Type | Description |
|---|---|---|
length * | number | New length in seconds (> 0) |
name * | string | Animation name |
player_path * | string | AnimationPlayer node path |
library | string | Animation library name (default "") |
anim_set_loop Set animation loop mode
Set an Animation's loop mode (undoable).
| Parameter | Type | Description |
|---|---|---|
mode * | string | Loop mode: none, linear, or pingpong |
name * | string | Animation name |
player_path * | string | AnimationPlayer node path |
library | string | Animation library name (default "") |
anim_get_track_keys Get animation track keys
List all keyframes on a track (index, time, value, transition). Read-only.
| Parameter | Type | Description |
|---|---|---|
name * | string | Animation name |
player_path * | string | AnimationPlayer node path |
track * | integer | Track index |
library | string | Animation library name (default "") |
anim_list List animations
List all animations in an AnimationPlayer across its libraries, with length, loop mode, and track count. Read-only.
| Parameter | Type | Description |
|---|---|---|
player_path * | string | AnimationPlayer node path |
anim_tree_create Create AnimationTree
Add an AnimationTree node under a parent (undoable) with a fresh tree_root graph. root_type "blend_tree" (AnimationNodeBlendTree) or "state_machine" (AnimationNodeStateMachine). Created inactive by default; set anim_player_path to the AnimationPlayer it should drive.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
active | boolean | Whether the tree processes immediately (default false) |
anim_player_path | string | NodePath to the AnimationPlayer this tree drives, relative to the AnimationTree node |
name | string | Node name (default "AnimationTree") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
root_type | string | tree_root graph type (default blend_tree) |
anim_tree_add_node Add AnimationTree graph node
Add a node to an AnimationTree's tree_root graph (AnimationNodeBlendTree or AnimationNodeStateMachine), undoable. node_type is any AnimationNode subclass (e.g. AnimationNodeAnimation, AnimationNodeBlend2, AnimationNodeStateMachine). For AnimationNodeAnimation, pass animation to bind a clip.
| Parameter | Type | Description |
|---|---|---|
node_name * | string | Unique node name within the graph |
node_type * | string | AnimationNode subclass to instantiate (e.g. AnimationNodeAnimation) |
tree_path * | string | AnimationTree node path relative to the scene root |
animation | string | For AnimationNodeAnimation: the animation name to play |
position | array | Graph editor position [x, y] (default [0, 0]) |
anim_statemachine_add_state Add state machine state
Add a state to an AnimationNodeStateMachine (undoable). Targets the AnimationTree's tree_root when it is a state machine, or a nested state-machine node via state_machine. Defaults the state to an AnimationNodeAnimation; pass animation to bind a clip.
| Parameter | Type | Description |
|---|---|---|
state_name * | string | Unique state name within the state machine |
tree_path * | string | AnimationTree node path relative to the scene root |
animation | string | For an AnimationNodeAnimation state: the animation name to play |
node_type | string | AnimationNode subclass for the state (default AnimationNodeAnimation) |
position | array | Graph editor position [x, y] (default [0, 0]) |
state_machine | string | Name of a nested AnimationNodeStateMachine node within tree_root; omit to target tree_root itself |
anim_statemachine_add_transition Add state machine transition
Add a transition between two states in an AnimationNodeStateMachine (undoable). from_state/to_state must exist (or be the built-in "Start"/"End"). switch_mode: immediate|sync|at_end; advance_mode: disabled|enabled|auto.
| Parameter | Type | Description |
|---|---|---|
from_state * | string | Source state name (or "Start") |
to_state * | string | Destination state name (or "End") |
tree_path * | string | AnimationTree node path relative to the scene root |
advance_condition | string | Advance condition parameter name (used with advance_mode auto) |
advance_mode | string | Advance mode (default enabled) |
priority | integer | Transition priority (lower wins when multiple are valid) |
state_machine | string | Name of a nested AnimationNodeStateMachine node within tree_root; omit to target tree_root itself |
switch_mode | string | Switch mode (default immediate) |
xfade_time | number | Cross-fade time in seconds (default 0) |
tileset_create Create TileSet
Instantiate a TileSet resource and save it as a new .tres file. DESTRUCTIVE (writes a file) — gated by confirmation. tile_size is the base grid cell size in pixels (default 16×16).
| Parameter | Type | Description |
|---|---|---|
to_path * | string | Destination res:// path, e.g. res://tiles/world.tres |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Replace if it exists |
tile_size | array | Base tile grid size [x, y] in pixels (default [16, 16]) |
tileset_add_source Add TileSet atlas source
Add a TileSetAtlasSource (backed by a Texture2D) to a TileSet .tres and re-save. DESTRUCTIVE (writes a file) — gated by confirmation. texture_region_size defaults to the TileSet's tile_size; source_id -1 auto-assigns.
| Parameter | Type | Description |
|---|---|---|
texture_path * | string | Texture2D res:// path used as the atlas image |
tileset_path * | string | TileSet res:// .tres path |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
margins | array | Atlas margins [x, y] in pixels |
separation | array | Atlas separation [x, y] in pixels |
source_id | integer | Explicit source id, or -1 to auto-assign (default -1) |
texture_region_size | array | Atlas cell size [x, y] in pixels (default = tile_size) |
tileset_add_tile Add TileSet tile
Create a tile at atlas_coords in an atlas source of a TileSet .tres and re-save. DESTRUCTIVE (writes a file) — gated by confirmation. size is measured in atlas cells (default [1, 1]).
| Parameter | Type | Description |
|---|---|---|
atlas_coords * | array | Tile atlas coordinates [x, y] (in cells) |
source_id * | integer | Atlas source id within the TileSet |
tileset_path * | string | TileSet res:// .tres path |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
size | array | Tile size in atlas cells [x, y] (default [1, 1]) |
tileset_set_tile_collision Set tile collision polygon
Add a collision polygon to a tile on a TileSet physics layer and re-save. DESTRUCTIVE (writes a file) — gated by confirmation. Physics layers are created as needed. polygon is an array of [x, y] points (>= 3), tile-local pixels.
| Parameter | Type | Description |
|---|---|---|
atlas_coords * | array | Tile atlas coordinates [x, y] (in cells) |
polygon * | array | Collision polygon points [[x, y], ...] (>= 3), tile-local pixels |
source_id * | integer | Atlas source id within the TileSet |
tileset_path * | string | TileSet res:// .tres path |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
one_way | boolean | Mark the polygon as one-way collision |
physics_layer | integer | TileSet physics layer index (default 0; created if missing) |
tilemaplayer_create Create TileMapLayer
Add a TileMapLayer node under a parent in the edited scene (undoable), optionally binding a TileSet .tres so cells can be painted. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
name | string | Node name (default "TileMapLayer") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
tileset_path | string | TileSet res:// .tres path to bind as tile_set (e.g. from tileset_create) |
tilemap_set_cell Set TileMapLayer cell
Paint a single cell on a TileMapLayer (undoable). source_id -1 erases the cell (default). atlas_coords defaults to [0, 0]; alternative defaults to 0.
| Parameter | Type | Description |
|---|---|---|
coords * | array | Cell coordinates [x, y] (in cells) |
path * | string | TileMapLayer node path relative to the scene root |
alternative | integer | Alternative tile id (default 0) |
atlas_coords | array | Tile atlas coordinates [x, y] within the source (default [0, 0]) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
source_id | integer | Atlas source id from the bound TileSet, or -1 to erase (default -1) |
tilemap_set_cells_rect Fill TileMapLayer cells (rect)
Paint every cell in a rectangular region of a TileMapLayer with one tile (undoable, one action). source_id -1 clears the region. Capped at 65536 cells; split larger fills across calls.
| Parameter | Type | Description |
|---|---|---|
path * | string | TileMapLayer node path relative to the scene root |
rect * | array | Region [x, y, width, height] in cells (width/height > 0) |
alternative | integer | Alternative tile id (default 0) |
atlas_coords | array | Tile atlas coordinates [x, y] within the source (default [0, 0]) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
source_id | integer | Atlas source id from the bound TileSet, or -1 to clear (default -1) |
tilemap_get_cell Get TileMapLayer cell
Read one cell of a TileMapLayer. An empty cell reads back as source_id -1, atlas_coords [-1, -1], alternative 0 (empty = true).
| Parameter | Type | Description |
|---|---|---|
coords * | array | Cell coordinates [x, y] (in cells) |
path * | string | TileMapLayer node path relative to the scene root |
tilemap_clear Clear TileMapLayer
Remove every painted cell from a TileMapLayer (undoable — prior cells are restored on undo). Returns the number of cells cleared.
| Parameter | Type | Description |
|---|---|---|
path * | string | TileMapLayer node path relative to the scene root |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
body_create Create physics body
Add a physics body node under a parent in the edited scene (undoable): a StaticBody, RigidBody, CharacterBody, or Area, in 2D or 3D. In-scene and undoable — not gated. Attach collision shapes with collisionshape_add.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
type * | string | Body kind: static | rigid | character | area |
dim | string | Dimension: "2d" (default) or "3d" |
name | string | Node name (default the class name, e.g. "StaticBody2D") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
collisionshape_add Add collision shape
Add a CollisionShape2D/3D node carrying a shape resource under a parent (usually a body) in the edited scene (undoable). shape is rect | circle | capsule | polygon; dim selects 2D (Rectangle/Circle/Capsule/ConvexPolygon 2D) or 3D (Box/Sphere/Capsule/ConvexPolygon 3D). In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path (usually a body) relative to the scene root; "." for the root |
shape * | string | Shape kind: rect | circle | capsule | polygon |
dim | string | Dimension: "2d" (default) or "3d" |
height | number | capsule height |
name | string | Node name (default "CollisionShape2D"/"CollisionShape3D") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
points | array | polygon: convex-hull points, [[x, y], …] (2D, ≥3) or [[x, y, z], …] (3D, ≥4) |
radius | number | circle/capsule radius |
size | array | rect: [w, h] (2D) or [w, h, d] (3D) |
body_set_collision_layer Set collision layer
Set the collision_layer bitmask on a physics body or area (CollisionObject2D/3D) in the edited scene (undoable). layer is the integer bitmask of layers this object occupies.
| Parameter | Type | Description |
|---|---|---|
layer * | integer | collision_layer bitmask (non-negative integer) |
path * | string | Body/Area node path relative to the scene root |
body_set_collision_mask Set collision mask
Set the collision_mask bitmask on a physics body or area (CollisionObject2D/3D) in the edited scene (undoable). mask is the integer bitmask of layers this object scans for collisions.
| Parameter | Type | Description |
|---|---|---|
mask * | integer | collision_mask bitmask (non-negative integer) |
path * | string | Body/Area node path relative to the scene root |
area_set_monitoring Set area monitoring
Set monitoring and/or monitorable on an Area2D/3D in the edited scene (undoable). monitoring = the area detects overlapping bodies/areas; monitorable = other areas can detect it. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
path * | string | Area2D/3D node path relative to the scene root |
monitorable | boolean | Whether other areas can detect this area |
monitoring | boolean | Whether the area detects overlapping bodies/areas |
area_set_gravity Set area gravity
Set the local gravity override of an Area2D/3D in the edited scene (undoable): space_override mode, gravity magnitude, direction, and whether gravity points toward a center (point). In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
path * | string | Area2D/3D node path relative to the scene root |
direction | array | Gravity direction [x, y] (2D) or [x, y, z] (3D) |
gravity | number | Gravity magnitude (units/s^2) |
point | boolean | If true, gravity pulls toward the area's gravity point instead of a direction |
space_override | string | How this area's gravity combines with the global/other areas |
joint_create Create physics joint
Add a physics joint node under a parent in the edited scene (undoable). 2D types: pin | groove | spring (PinJoint2D/GrooveJoint2D/DampedSpringJoint2D); 3D types: pin | hinge | slider | cone_twist | generic6dof (PinJoint3D/HingeJoint3D/SliderJoint3D/ConeTwistJoint3D/Generic6DOFJoint3D). Optionally wire node_a/node_b to the two bodies. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
type * | string | Joint kind; pin works in both dims, the rest are dim-specific |
dim | string | Dimension: "2d" (default) or "3d" |
name | string | Node name (default the class name, e.g. "PinJoint2D") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
node_a | string | NodePath (relative to the joint) of the first body |
node_b | string | NodePath (relative to the joint) of the second body |
joint_set_bodies Set joint bodies
Set node_a and/or node_b on an existing Joint2D/3D in the edited scene (undoable) — the NodePaths of the two bodies the joint connects, relative to the joint node. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
path * | string | Joint2D/3D node path relative to the scene root |
node_a | string | NodePath (relative to the joint) of the first body |
node_b | string | NodePath (relative to the joint) of the second body |
collisionpolygon_add Add collision polygon
Add a CollisionPolygon2D/3D node carrying a polygon under a parent (usually a body) in the edited scene (undoable). points is a 2D outline [[x, y], …] (≥3); for 3D it is extruded along Z by depth. 2D build_mode is solids | segments. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path (usually a body) relative to the scene root; "." for the root |
points * | array | Polygon outline points [[x, y], …] (≥3); a 2D outline even for 3D |
build_mode | string | 2D only: solids (default) or segments |
depth | number | 3D only: extrusion depth along Z (default 1.0) |
dim | string | Dimension: "2d" (default) or "3d" |
name | string | Node name (default "CollisionPolygon2D"/"CollisionPolygon3D") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
rigidbody_set_properties Set rigidbody properties
Tune a RigidBody2D/3D in the edited scene (undoable): mass (> 0), gravity_scale, linear_damp, angular_damp. Only the provided properties change. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
path * | string | RigidBody2D/3D node path relative to the scene root |
angular_damp | number | Angular damping (≥ 0) |
gravity_scale | number | Multiplier on gravity (1 = normal, 0 = float) |
linear_damp | number | Linear damping (≥ 0) |
mass | number | Body mass (> 0) |
body_set_physics_material Set body physics material
Create a PhysicsMaterial and assign it as physics_material_override on a StaticBody/RigidBody (2D or 3D) in the edited scene (undoable): friction (default 1), bounce (default 0), rough, absorbent. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
path * | string | StaticBody/RigidBody 2D/3D node path relative to the scene root |
absorbent | boolean | Absorbent bounce combine mode (default false) |
bounce | number | Restitution/bounciness 0..1 (default 0) |
friction | number | Surface friction 0..1 (default 1) |
rough | boolean | Rough friction combine mode (default false) |
physics_set_gravity Set project gravity
Write the project's default gravity for 2D or 3D (ProjectSettings physics/{2d,3d}/default_gravity + default_gravity_vector). Set save=true to persist to project.godot. DESTRUCTIVE (project-wide setting) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Skip the confirmation prompt (auto-approve) |
dim | string | Which gravity to set: "2d" (default) or "3d" |
direction | array | Gravity direction vector [x, y] (2D) or [x, y, z] (3D) |
magnitude | number | Gravity magnitude (default 2D 980, 3D 9.8) |
save | boolean | Persist to project.godot (default false) |
particles_create Create particles
Add a GPUParticles2D/3D node under a parent in the edited scene (undoable). Optional initial amount (> 0), lifetime (> 0), emitting. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
amount | number | Number of particles (> 0, default 8) |
dim | string | Dimension: "2d" (default, GPUParticles2D) or "3d" (GPUParticles3D) |
emitting | boolean | Whether the system is emitting (default true) |
lifetime | number | Particle lifetime in seconds (> 0, default 1) |
name | string | Node name (default "GPUParticles2D"/"GPUParticles3D") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
particles_set_process_material Set particles process material
Create a ParticleProcessMaterial and assign it as process_material on a GPUParticles2D/3D in the edited scene (undoable). Optional knobs: gravity [x, y, z], direction [x, y, z], spread, initial_velocity_min/max, scale_min/max, color [r, g, b, a]. GPU particles need a process material to emit. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
path * | string | GPUParticles2D/3D node path relative to the scene root |
color | array | Base color [r, g, b] or [r, g, b, a] (0..1) |
direction | array | Emission direction [x, y, z] |
gravity | array | Gravity vector [x, y, z] |
initial_velocity_max | number | Maximum initial velocity |
initial_velocity_min | number | Minimum initial velocity |
scale_max | number | Maximum particle scale |
scale_min | number | Minimum particle scale |
spread | number | Emission spread in degrees |
particles_set_amount Set particles amount
Set the number of particles (amount, > 0) on a GPUParticles2D/3D in the edited scene (undoable). In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Number of particles (> 0) |
path * | string | GPUParticles2D/3D node path relative to the scene root |
particles_set_lifetime Set particles lifetime
Set the particle lifetime in seconds (> 0) on a GPUParticles2D/3D in the edited scene (undoable). In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
lifetime * | number | Lifetime in seconds (> 0) |
path * | string | GPUParticles2D/3D node path relative to the scene root |
particles_set_emitting Set particles emitting
Toggle whether a GPUParticles2D/3D is emitting in the edited scene (undoable). In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
emitting * | boolean | Whether the system is emitting |
path * | string | GPUParticles2D/3D node path relative to the scene root |
particles_set_texture Set particles texture
Load a Texture2D from a res:// path and assign it as texture on a GPUParticles2D in the edited scene (undoable). GPUParticles2D only — GPUParticles3D draws meshes and has no texture (returns unsupported). In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
path * | string | GPUParticles2D node path relative to the scene root |
texture_path * | string | res:// path to a Texture2D resource |
shader_create Create shader
Create a Shader resource with optional initial code and save it as a .gdshader file. DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
to_path * | string | Destination res:// path, e.g. res://shaders/glow.gdshader |
code | string | Initial GDShader source (e.g. "shader_type canvas_item; ...") |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Replace if it exists |
shader_set_code Set shader code
Replace the source code of an existing .gdshader resource and save it. DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
code * | string | New GDShader source |
path * | string | Shader res:// path |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
shadermaterial_create Create shader material
Create a ShaderMaterial and assign it to a node's material slot in the edited scene (undoable). Targets CanvasItem.material (2D / Control) or GeometryInstance3D.material_override (3D); other node types return unsupported. Optionally assign a Shader loaded from a res:// path. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root (a CanvasItem or GeometryInstance3D) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
shader_path | string | res:// path to a Shader to assign to the new material |
shadermaterial_set_shader Set shader material shader
Load a Shader from a res:// path and assign it to the ShaderMaterial on a node's material slot in the edited scene (undoable). The node must already have a ShaderMaterial. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
shader_path * | string | res:// path to a Shader resource |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
shadermaterial_set_param Set shader material parameter
Set a shader uniform parameter on the ShaderMaterial of a node's material slot in the edited scene (undoable). The node must already have a ShaderMaterial. The value uses the tagged-Variant convention. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
param * | string | Shader uniform name |
path * | string | Node path relative to the scene root |
value * | New value (JSON scalar or __type__-tagged Variant) | |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
audio_player_create Create audio player
Add an AudioStreamPlayer / AudioStreamPlayer2D / AudioStreamPlayer3D node under a parent in the edited scene (undoable). `dim` selects "none" (default, non-positional AudioStreamPlayer), "2d", or "3d". Optional initial stream_path (res:// AudioStream), autoplay, volume_db, bus. In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
autoplay | boolean | Whether the player starts automatically on scene load |
bus | string | Target audio bus name (default "Master") |
dim | string | Player kind: "none" (default, AudioStreamPlayer), "2d" (AudioStreamPlayer2D), or "3d" (AudioStreamPlayer3D) |
name | string | Node name (default matches the player class) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
stream_path | string | res:// path to an AudioStream to assign to the new player |
volume_db | number | Player volume in dB |
audio_set_stream Set audio stream
Load an AudioStream from a res:// path and assign it as stream on an AudioStreamPlayer/2D/3D in the edited scene (undoable). In-scene and undoable — not gated.
| Parameter | Type | Description |
|---|---|---|
path * | string | AudioStreamPlayer/2D/3D node path relative to the scene root |
stream_path * | string | res:// path to an AudioStream resource |
audio_bus_add Add audio bus
Add a bus to the project's global AudioServer layout, optionally naming it, positioning it (at_position), and setting its send bus. DESTRUCTIVE (project-wide audio state) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
at_position | number | Insert index (default -1 = append at end) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
name | string | Name for the new bus |
send | string | Name of the bus this bus sends its output to |
audio_bus_add_effect Add audio bus effect
Instantiate an AudioEffect subclass (by class name, e.g. "AudioEffectReverb") and add it to a named bus on the global AudioServer, optionally at a position in the bus's effect chain. DESTRUCTIVE (project-wide audio state) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
bus * | string | Target bus name |
effect * | string | AudioEffect subclass name, e.g. "AudioEffectReverb", "AudioEffectDelay" |
at_position | number | Insert index within the bus's effect chain (default -1 = append) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
audio_bus_set_volume Set audio bus volume
Set the volume (in dB) of a named bus on the global AudioServer. DESTRUCTIVE (project-wide audio state) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
bus * | string | Bus name |
volume_db * | number | Volume in dB |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
audio_set_bus_layout Save audio bus layout
Save the current AudioServer bus layout (buses, effects, volumes) to a .tres resource on disk (default res://default_bus_layout.tres) via generate_bus_layout + ResourceSaver.save. DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Replace if it exists |
to_path | string | Destination res:// path (default res://default_bus_layout.tres) |
control_create Create control
Instance a Control-derived UI node (Button, Label, Panel, VBoxContainer, TextureRect, …) under a parent (undoable). Refuses non-Control classes. Optional 'text' is applied only to controls that expose a 'text' property. Returns the new node's path.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
type * | string | Control subclass to instance, e.g. Button, Label, Panel, VBoxContainer, TextureRect |
name | string | Node name (defaults to the class name) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
text | string | Initial text; applied only if the control has a 'text' property |
container_add_child Add control to container
Instance a Control-derived child under a Container node (VBoxContainer, GridContainer, MarginContainer, …) so it participates in the container's layout (undoable). Refuses a non-Container parent or a non-Control child. Returns the new node's path.
| Parameter | Type | Description |
|---|---|---|
container_path * | string | Container node path relative to the scene root |
type * | string | Control subclass to instance as the container's child, e.g. Button, Label |
name | string | Node name (defaults to the class name) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
control_set_anchors Set control anchors
Set one or more of a Control's anchors (left/top/right/bottom, each 0..1) directly (undoable). Only the sides you pass are changed; offsets are left as-is. Provide at least one side.
| Parameter | Type | Description |
|---|---|---|
path * | string | Control node path relative to the scene root |
bottom | number | anchor_bottom (0..1) |
left | number | anchor_left (0..1) |
right | number | anchor_right (0..1) |
top | number | anchor_top (0..1) |
control_set_layout_preset Apply control layout preset
Apply a LayoutPreset to a Control via set_anchors_and_offsets_preset (undoable). 'preset' is a name (full_rect, center, top_left, center_top, left_wide, hcenter_wide, …) or the integer enum value. Optional resize_mode (0=min_size,1=keep_width,2=keep_height,3=keep_size) and margin.
| Parameter | Type | Description |
|---|---|---|
path * | string | Control node path relative to the scene root |
preset * | string | number | LayoutPreset name or integer (0..15) |
margin | integer | Margin in pixels applied by the preset (default 0) |
resize_mode | integer | LayoutPresetMode 0..3 (default 0 = min size) |
control_set_size_flags Set control size flags
Set a Control's container size flags and/or stretch ratio (undoable). 'horizontal'/'vertical' are SizeFlags bitmasks (1=fill, 2=expand, 3=expand_fill, 4=shrink_center, 8=shrink_end). Provide at least one of horizontal/vertical/stretch_ratio.
| Parameter | Type | Description |
|---|---|---|
path * | string | Control node path relative to the scene root |
horizontal | integer | size_flags_horizontal bitmask |
stretch_ratio | number | size_flags_stretch_ratio (default 1.0) |
vertical | integer | size_flags_vertical bitmask |
control_set_theme Set control theme
Assign a Theme resource (res:// path) to a Control's 'theme' property so it and its children inherit it (undoable). Pass an empty theme_path to clear the override.
| Parameter | Type | Description |
|---|---|---|
path * | string | Control node path relative to the scene root |
theme_path * | string | Theme res:// path, or "" to clear the theme override |
theme_create Create theme
Create a new empty Theme resource and save it to a res:// path. DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
to_path * | string | Destination res:// path, e.g. res://ui/main.theme or res://ui/main.tres |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Replace if it exists |
theme_set_color Set theme color
Set a color entry on a Theme resource file and save it (e.g. font_color for the Button type). DESTRUCTIVE (writes a file) — gated by confirmation. 'color' is [r,g,b] or [r,g,b,a] with components 0..1.
| Parameter | Type | Description |
|---|---|---|
color * | array | [r,g,b] or [r,g,b,a], components 0..1 |
name * | string | Theme item name, e.g. font_color |
path * | string | Theme res:// path |
theme_type * | string | Theme type the item belongs to, e.g. Button, Label |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
theme_set_font Set theme font
Set a font entry on a Theme resource file (loading a Font from a res:// path) and save it. DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
font_path * | string | Font resource res:// path (FontFile / SystemFont / …) |
name * | string | Theme item name, e.g. font |
path * | string | Theme res:// path |
theme_type * | string | Theme type the item belongs to, e.g. Button, Label |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
theme_set_stylebox Set theme stylebox
Set a StyleBox entry on a Theme resource file (loading a StyleBox from a res:// path) and save it. DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
name * | string | Theme item name, e.g. normal, pressed, panel |
path * | string | Theme res:// path |
stylebox_path * | string | StyleBox resource res:// path (StyleBoxFlat / StyleBoxTexture / …) |
theme_type * | string | Theme type the item belongs to, e.g. Button, PanelContainer |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
theme_set_constant Set theme constant
Set an integer constant entry on a Theme resource file and save it (e.g. h_separation for a BoxContainer). DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
name * | string | Theme item name, e.g. h_separation, margin_left |
path * | string | Theme res:// path |
theme_type * | string | Theme type the item belongs to, e.g. HBoxContainer, MarginContainer |
value * | integer | Integer constant value |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
meshinstance_create Create MeshInstance3D
Add a MeshInstance3D under a parent (undoable). Optional 'mesh_path' loads a Mesh resource (e.g. a primitive_mesh_create output) and assigns it. Returns the new node's path.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
mesh_path | string | Mesh resource res:// path to assign to the instance's 'mesh' |
name | string | Node name (default MeshInstance3D) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
mesh_set_surface_material Set mesh surface material
Assign a Material (res:// path) to a MeshInstance3D (undoable). Default surface -1 sets 'material_override' (whole instance); a surface index >= 0 sets that surface's override material (must be within the mesh's surface count). Refuses a non-MeshInstance3D node or a non-Material resource.
| Parameter | Type | Description |
|---|---|---|
material_path * | string | Material resource res:// path (StandardMaterial3D / ShaderMaterial / …) |
path * | string | MeshInstance3D node path relative to the scene root |
surface | integer | Surface index, or -1 (default) for material_override |
primitive_mesh_create Create primitive mesh
Create a PrimitiveMesh resource (box/sphere/cylinder/plane/capsule/prism/torus/quad) and save it to a res:// path. DESTRUCTIVE (writes a file) — gated by confirmation. Assign it with meshinstance_create's 'mesh_path'.
| Parameter | Type | Description |
|---|---|---|
to_path * | string | Destination res:// path, e.g. res://meshes/box.tres |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Replace if it exists |
shape | string | box | sphere | cylinder | plane | capsule | prism | torus | quad (default box) |
light_create Create Light3D
Add a 3D light under a parent (undoable). 'kind' selects DirectionalLight3D (dir), OmniLight3D (omni), or SpotLight3D (spot). Returns the new node's path.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
kind | string | Light kind: dir | omni | spot (default omni) |
name | string | Node name (defaults to the class name) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
camera_create Create Camera3D
Add a Camera3D under a parent (undoable). Optional 'current' makes it the active camera. Returns the new node's path.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
current | boolean | Make this the current/active camera (default false) |
name | string | Node name (default Camera3D) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
csg_create Create CSG node
Add a CSG node under a parent (undoable). 'shape' selects CSGBox3D (box), CSGSphere3D (sphere), CSGCylinder3D (cylinder), CSGTorus3D (torus), CSGPolygon3D (polygon), CSGMesh3D (mesh), or CSGCombiner3D (combiner). Returns the new node's path.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
name | string | Node name (defaults to the class name) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
shape | string | box | sphere | cylinder | torus | polygon | mesh | combiner (default box) |
environment_create Create Environment
Create an Environment resource and save it to a res:// path. 'background' sets the mode (clear_color/color/sky/canvas, default clear_color); optional 'ambient_color' ([r,g,b(,a)], 0..1) sets the ambient light color. DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
to_path * | string | Destination res:// path, e.g. res://world.tres |
ambient_color | array | Ambient light color [r,g,b] or [r,g,b,a], 0..1 |
background | string | clear_color | color | sky | canvas (default clear_color) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Replace if it exists |
environment_set_sky Set Environment sky
Attach a Sky to an existing Environment resource file (setting a ProceduralSkyMaterial, PhysicalSkyMaterial, or PanoramaSkyMaterial) and switch its background to SKY, then re-save. DESTRUCTIVE (writes a file) — gated by confirmation. Refuses a path that is not an Environment.
| Parameter | Type | Description |
|---|---|---|
path * | string | Environment res:// path |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
sky_material | string | Sky material kind (default procedural) |
inputmap_add_action Add input action
Define a project input action (ProjectSettings input/<name>) with an empty event list and a deadzone. Set save=true to persist to project.godot. DESTRUCTIVE (project-wide input map) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
name * | string | Action name (without the input/ prefix) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
deadzone | number | Analog deadzone 0..1 (default 0.5) |
save | boolean | Persist to project.godot (default false) |
inputmap_add_event Add input event to action
Append an input event to an existing project input action. 'event' is { type: key|mouse_button|joy_button|joy_motion, ... } — key: keycode or physical_keycode as a name like "A"/"Space" or an int; mouse_button/joy_button: button_index; joy_motion: axis + axis_value. Set save=true to persist. DESTRUCTIVE — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
event * | object | Input event descriptor |
name * | string | Existing action name (without the input/ prefix) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
save | boolean | Persist to project.godot (default false) |
inputmap_list List input actions
List all project-defined input actions (ProjectSettings input/*) with their deadzone and events (class + human-readable text). Read-only.
inputmap_erase_action Erase input action
Remove a project input action (ProjectSettings input/<name>). Set save=true to persist to project.godot. DESTRUCTIVE — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
name * | string | Action name (without the input/ prefix) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
save | boolean | Persist to project.godot (default false) |
project_add_autoload Add autoload singleton
Register an autoload (ProjectSettings autoload/<name>) pointing at a res:// script or scene, enabled as a global singleton by default. Set save=true to persist to project.godot. DESTRUCTIVE — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
name * | string | Autoload / singleton name |
path * | string | res:// path to a .gd script or .tscn scene |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
enabled | boolean | Enable as a global singleton (default true) |
save | boolean | Persist to project.godot (default false) |
project_remove_autoload Remove autoload singleton
Remove an autoload (ProjectSettings autoload/<name>). Set save=true to persist to project.godot. DESTRUCTIVE — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
name * | string | Autoload / singleton name |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
save | boolean | Persist to project.godot (default false) |
project_add_export_preset Add export preset
Append an export preset to res://export_presets.cfg for a platform (e.g. "Windows Desktop", "Web", "Linux/X11", "macOS"). Returns the preset's index. DESTRUCTIVE (writes export_presets.cfg) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
name * | string | Preset display name |
platform * | string | Export platform name as shown in the editor |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
export_path | string | Default export output path |
runnable | boolean | Mark the preset runnable (default true) |
project_set_main_scene Set main scene
Set the project's main scene (ProjectSettings application/run/main_scene) to an existing res:// .tscn/.scn. Set save=true to persist to project.godot. DESTRUCTIVE — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
path * | string | res:// path to the scene to run first |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
save | boolean | Persist to project.godot (default false) |
project_list_settings List project settings
List ProjectSettings keys and values, optionally filtered by a dotted-key prefix (e.g. "input/", "autoload/", "application/"). Read-only.
| Parameter | Type | Description |
|---|---|---|
prefix | string | Only return keys starting with this prefix (default: all) |
editorsettings_get_set Get or set an editor setting
Read an EditorSettings value by name; if 'value' is provided, write it instead (persists to the editor's global config). Reading is read-only; writing is DESTRUCTIVE (mutates the editor config) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
name * | string | EditorSettings key, e.g. interface/editor/code_font_size |
confirm | boolean | Auto-approve the write (skip the confirmation prompt) |
value | If provided, set this value (rich types use the {"__type__":...} tagging convention) |
test_detect Detect test framework
Detect an installed GDScript test framework (GUT or GdUnit4) in the project. Returns { framework: gut|gdunit4|none, path, version }. Read-only.
test_list List test scripts
List GDScript test scripts (files named test_*.gd or *_test.gd) under a directory (default res://test), searched recursively. Read-only.
| Parameter | Type | Description |
|---|---|---|
dir | string | Directory to search (default res://test) |
gd_completion GDScript completion
Type-aware code completion at a position via the Godot language server. Returns at most max_results items (default 200) and sets truncated when the language server offered more.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | Script path (res://..., absolute, or project-relative) |
max_results | integer | Maximum completion items to return (default 200). Completion is the one verb whose result size is a function of project scope rather than of the cursor — one call was measured at 342,116 bytes, more… |
gd_hover GDScript hover
Hover documentation/type info at a position.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | Script path (res://..., absolute, or project-relative) |
gd_definition GDScript go-to-definition
Resolve the definition location(s) of the symbol at a position.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | Script path (res://..., absolute, or project-relative) |
gd_references GDScript find-references
Find all references to the symbol at a position.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | Script path (res://..., absolute, or project-relative) |
include_declaration | boolean | Include the declaration (default true) |
gd_rename GDScript rename symbol
Rename a symbol project-wide. Returns the planned edit; pass apply=true to WRITE the changes to disk (DESTRUCTIVE — confirm with the user). new_name must be a valid GDScript identifier and not a reserved word: the language server plans a rename to any string, including one that would write a file GDScript cannot parse, so an illegal name is refused here before the rename is planned.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
new_name * | string | New symbol name |
path * | string | Script path (res://..., absolute, or project-relative) |
apply | boolean | Write edits to disk (default false = dry run) |
confirm | boolean | Auto-approve writing edits (skip the confirmation prompt); only relevant with apply=true |
gd_document_symbols GDScript document symbols
List the symbols (classes, functions, variables, signals) declared in a script.
| Parameter | Type | Description |
|---|---|---|
path * | string | Script path |
gd_workspace_symbols GDScript workspace symbols
Search symbols across the whole project by name. Note: Godot's GDScript language server does not implement LSP 'workspace/symbol' (observed through 4.7), so on those builds this returns a clear 'unsupported' error rather than results — use gd_document_symbols for per-file symbols.
| Parameter | Type | Description |
|---|---|---|
query * | string | Symbol name query |
gd_diagnostics GDScript diagnostics
Return compile/lint diagnostics (errors, warnings) for a script. Opens the file and waits briefly for the server to publish.
| Parameter | Type | Description |
|---|---|---|
path * | string | Script path |
wait_ms | integer | Max time to wait for the first publish (default 1500) |
gd_signature_help GDScript signature help
Show the call signature(s) and active parameter at a position (the parameter hints an IDE pops up inside a call). Godot's GDScript language server advertises signatureHelpProvider.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | Script path (res://..., absolute, or project-relative) |
gd_code_action GDScript code actions
List the code actions (quick fixes / refactors) the language server offers for a range — the lightbulb menu. Read-only: returns the available actions (title, kind, whether each carries a WorkspaceEdit or a Command) without applying any. end_line/end_character default to the start position (a caret, not a selection).
| Parameter | Type | Description |
|---|---|---|
path * | string | Script path (res://..., absolute, or project-relative) |
start_character * | integer | 0-based start character |
start_line * | integer | 0-based start line |
end_character | integer | 0-based end character (default = start_character) |
end_line | integer | 0-based end line (default = start_line) |
only | array | Restrict to these CodeActionKind prefixes, e.g. 'quickfix', 'refactor', 'source' |
gd_document_highlight GDScript document highlights
Highlight every occurrence of the symbol at a position WITHIN the same file, tagged read / write / text (the shading an editor shows for a variable's uses when the caret is on it). Read-only. Godot's GDScript language server advertises documentHighlightProvider; feature-detected.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | Script path (res://..., absolute, or project-relative) |
gd_type_definition GDScript go-to-type-definition
Resolve the location of the TYPE of the symbol at a position (jump to the class of a typed variable), as opposed to the symbol's own definition. Godot's GDScript language server advertises typeDefinitionProvider; feature-detected.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | Script path (res://..., absolute, or project-relative) |
gd_implementation GDScript go-to-implementation
Resolve the implementation location(s) of the symbol at a position (e.g. the concrete override of a method). Godot's GDScript language server advertises implementationProvider; feature-detected.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | Script path (res://..., absolute, or project-relative) |
gd_declaration GDScript go-to-declaration
Resolve the declaration location(s) of the symbol at a position. (For many symbols this coincides with the definition; the two differ for forward-declared or re-exported names.) Godot's GDScript language server advertises declarationProvider; feature-detected.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | Script path (res://..., absolute, or project-relative) |
gd_folding_ranges GDScript folding ranges
List the foldable regions of a script (functions, blocks, comment/region markers) — the ranges an editor's fold gutter offers. Read-only. Godot's GDScript language server advertises foldingRangeProvider; feature-detected.
| Parameter | Type | Description |
|---|---|---|
path * | string | Script path (res://..., absolute, or project-relative) |
gd_document_link GDScript document links
List the links embedded in a script (res:// paths or URLs the language server recognizes) with their source ranges and targets. Read-only. Godot's GDScript language server advertises documentLinkProvider; feature-detected.
| Parameter | Type | Description |
|---|---|---|
path * | string | Script path (res://..., absolute, or project-relative) |
gd_formatting GDScript format (preview)
Compute how the language server would reformat a whole script and return the formatted TEXT — WITHOUT writing anything to disk (read-only preview; apply it yourself with a file write if you want it). Godot's GDScript language server advertises documentFormattingProvider; feature-detected.
| Parameter | Type | Description |
|---|---|---|
path * | string | Script path (res://..., absolute, or project-relative) |
insert_spaces | boolean | Indent with spaces instead of tabs (default false — Godot uses tabs) |
tab_size | integer | Indent width the server should assume (default 4) |
gd_document_color GDScript document colors
List the color literals the language server recognizes in a script — the Color(...) values an editor draws an inline swatch for — with each one's source range, its RGBA components (floats 0..1) and a convenience #RRGGBBAA hex. Read-only. Godot's GDScript language server advertises colorProvider; feature-detected with a -32601 belt-and-suspenders (advertised ≠ implemented — the D7 lesson).
| Parameter | Type | Description |
|---|---|---|
path * | string | Script path (res://..., absolute, or project-relative) |
gd_call_hierarchy GDScript call hierarchy
Find the callers or callees of the function at a position. Resolves the symbol with textDocument/prepareCallHierarchy, then callHierarchy/incomingCalls or outgoingCalls, and returns each related function with the call-site ranges. Read-only. Godot's GDScript language server does not advertise callHierarchyProvider through 4.7; feature-detected.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | Script path (res://..., absolute, or project-relative) |
direction | string | incoming = who calls this (default); outgoing = what this calls |
gd_semantic_tokens GDScript semantic tokens
Return the semantic-highlighting tokens for a whole script — each token's position, length, type (e.g. function, variable, keyword) and modifiers — decoded from the LSP packed-integer form through the server's advertised legend. Read-only. Godot's GDScript language server does not advertise semanticTokensProvider through 4.7; feature-detected.
| Parameter | Type | Description |
|---|---|---|
path * | string | Script path (res://..., absolute, or project-relative) |
cs_completion C# completion
Type-aware C# code completion at a position via OmniSharp. Returns at most max_results items (default 200) and sets truncated when the language server offered more — `gd_completion`'s twin, capped for the reason measured on that one.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | C# script path (res://..., absolute, or relative to the C# project root) |
max_results | integer | Maximum completion items to return (default 200). Completion is the one verb whose result size is a function of project scope rather than of the cursor — one call was measured at 342,116 bytes, more… |
cs_hover C# hover
Hover documentation/type info at a position (e.g. the `Counter : int` type).
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | C# script path (res://..., absolute, or relative to the C# project root) |
cs_definition C# go-to-definition
Resolve the definition location(s) of the C# symbol at a position.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | C# script path (res://..., absolute, or relative to the C# project root) |
cs_references C# find-references
Find all references to the C# symbol at a position.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | C# script path (res://..., absolute, or relative to the C# project root) |
include_declaration | boolean | Include the declaration (default true) |
cs_rename C# rename symbol
Rename a C# symbol project-wide via OmniSharp. Returns the planned edit; pass apply=true to WRITE the changes to disk (DESTRUCTIVE — confirm with the user). new_name must be a valid C# identifier and not a reserved keyword: the language server plans a rename to any string, including one that would write a file the C# compiler rejects, so an illegal name is refused here before the rename is planned. Verbatim identifiers (@class) and contextual keywords (var, value, async) are legal and accepted.
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
new_name * | string | New symbol name — a valid C# identifier, optionally @-prefixed |
path * | string | C# script path (res://..., absolute, or relative to the C# project root) |
apply | boolean | Write edits to disk (default false = dry run) |
confirm | boolean | Auto-approve writing edits (skip the confirmation prompt); only relevant with apply=true |
cs_document_symbols C# document symbols
List the symbols (classes, methods, properties, fields) declared in a C# script.
| Parameter | Type | Description |
|---|---|---|
path * | string | C# script path |
cs_workspace_symbols C# workspace symbols
Search C# symbols across the whole project by name. Unlike Godot's GDScript server, OmniSharp implements LSP 'workspace/symbol', so this returns real results; it stays feature-detected (with a -32601 belt-and-suspenders) so a server that lacks it degrades gracefully rather than erroring opaquely.
| Parameter | Type | Description |
|---|---|---|
query * | string | Symbol name query |
cs_signature_help C# signature help
Show the call signature(s) and active parameter at a position (the parameter hints an IDE pops up inside a call).
| Parameter | Type | Description |
|---|---|---|
character * | integer | 0-based character |
line * | integer | 0-based line |
path * | string | C# script path (res://..., absolute, or relative to the C# project root) |
cs_diagnostics C# diagnostics
Return compile/analyzer diagnostics (errors, warnings) for a C# script. Opens the file and waits briefly for OmniSharp to publish.
| Parameter | Type | Description |
|---|---|---|
path * | string | C# script path |
wait_ms | integer | Max time to wait for the first publish (default 2000; OmniSharp's first analysis can be slow) |
cs_code_action C# code actions
List the code actions (quick fixes / refactors) OmniSharp offers for a range — the lightbulb menu. Read-only: returns the available actions (title, kind, whether each carries a WorkspaceEdit or a Command) without applying any. Unlike Godot's GDScript server, OmniSharp implements code actions, so this returns real results; it stays feature-detected (with a -32601 belt-and-suspenders) so a server that lacks it degrades gracefully. end_line/end_character default to the start position (a caret, not a selection).
| Parameter | Type | Description |
|---|---|---|
path * | string | C# script path (res://..., absolute, or relative to the C# project root) |
start_character * | integer | 0-based start character |
start_line * | integer | 0-based start line |
end_character | integer | 0-based end character (default = start_character) |
end_line | integer | 0-based end line (default = start_line) |
only | array | Restrict to these CodeActionKind prefixes, e.g. 'quickfix', 'refactor' |
dbg_launch Launch debug session
Start the game under the debugger; breakpoints set beforehand are applied during the handshake. Refuses rather than report a session that never started: a scene outside the project root, a missing scene or an empty one (measured on 4.7, the adapter accepts all three and nothing runs; an out-of-project scene leaves a sceneless game reported 'running' forever); a launch the adapter rejects (e.g. 'wrong_path' when the configured project is not the one the editor has open); and a bound runtime bridge port, since runtime_* would address the process holding it. Clear the holder (godot_stop, or quit…
| Parameter | Type | Description |
|---|---|---|
allow_port_conflict | boolean | Launch even though the runtime bridge port is already bound (default false). Breakpoints and stepping still work — a DAP session is addressed by session, not by port — but runtime_* tools would ta… |
scene | string | 'main' (default), 'current', res://scene.tscn, or uid://… — must be inside the project |
stop_on_entry | boolean | Break at entry (default false) |
dbg_attach Attach debug session
Attach to an already-running Godot debug session. Refuses if the adapter rejects the attach — Godot answers 'not_running' when nothing is running — instead of reporting state 'running' for a session that never started.
| Parameter | Type | Description |
|---|---|---|
address | string | Address of the running game (default 127.0.0.1) |
port | integer | Remote debug port |
dbg_set_breakpoints Set breakpoints
Set (replace) the breakpoints for a source file: applied now if a session is running, else buffered until launch. Refuses a source that can never bind: a missing file, a directory, an empty path (the project root), or a path outside the Godot project root, absolute ones included (unlike cs_dbg_set_breakpoints), since Godot binds breakpoints only to scripts in the project it runs. The per-line conditions / hit_conditions / log_messages modifiers are sent only when the adapter advertises supportsConditionalBreakpoints / supportsHitConditionalBreakpoints / supportsLogPoints. Measured: no Godot bu…
| Parameter | Type | Description |
|---|---|---|
lines * | array | 1-based line numbers |
path * | string | Script path (res://..., absolute, or project-relative) |
conditions | array | Optional per-line condition expressions (aligned to lines, use null to skip a line); break only when the expression is true. Gated on supportsConditionalBreakpoints — Measured: no Godot build this p… |
hit_conditions | array | Optional per-line hit expressions aligned to lines, e.g. '>3' or '%5' — break based on hit count (null to skip). Gated on supportsHitConditionalBreakpoints — Measured: no Godot build this project… |
log_messages | array | Optional per-line log messages aligned to lines; a message turns that breakpoint into a LOGPOINT (logs and continues, never halts). {expr} interpolates (null to skip). Gated on supportsLogPoints — M… |
dbg_continue Continue
Resume execution and wait for the program to settle again (next breakpoint or termination). Returns the resulting state; if it runs on with no further breakpoint, reports state 'running'. Requires a stop; a running program is refused (`not_stopped`).
dbg_step Step
Step execution: 'over' (next), 'in' (stepIn), or 'out' (stepOut), then wait for the step to land. Returns the resulting state and stop reason. Note: stepOut may be unsupported on older Godot builds. Requires a stop; a running program is refused (`not_stopped`).
| Parameter | Type | Description |
|---|---|---|
kind * | string | Step kind |
dbg_stack_trace Stack trace
Return the current call stack. Requires a stop; a running program is refused (`not_stopped`) rather than answered with the empty frame list it used to return.
| Parameter | Type | Description |
|---|---|---|
levels | integer | Max frames (default 20) |
dbg_scopes Scopes
Return the variable scopes (Locals, Members, Globals) for a stack frame. Requires a stop; a running program is refused (`not_stopped`) rather than answered with an empty list.
| Parameter | Type | Description |
|---|---|---|
frame_id * | integer | Frame id from dbg_stack_trace |
dbg_variables Variables
List variables under a scope or a complex value (via its variables_ref). Requires a stop (`not_stopped`) — a reference is only valid within the stop that issued it.
| Parameter | Type | Description |
|---|---|---|
variables_ref * | integer | variablesReference from dbg_scopes or a parent variable |
dbg_watch Watch expressions
Manage a persistent set of watch expressions and evaluate them in the current stopped frame. Pass `add`/`remove`/`clear` to mutate the set (all optional), then every current watch is re-evaluated and returned. Call with no mutation args to just re-read the watches after a step/continue. Expressions are evaluated in DAP `watch` context (intended to be side-effect-free), so this is not gated; the results are only meaningful while the program is stopped at a breakpoint.
| Parameter | Type | Description |
|---|---|---|
add | array | Expressions to add to the watch set |
clear | boolean | Clear all watches before applying add (default false) |
frame_id | integer | Frame id from dbg_stack_trace; omit for the top frame |
remove | array | Expressions to remove from the watch set |
dbg_set_exception_breakpoints Set exception breakpoints
Enable (replace) the debugger's exception breakpoint filters so execution halts when a matching error/exception is thrown (DAP setExceptionBreakpoints). Pass the filter IDs to enable; call with no filters (or []) to clear them. The result echoes the active filters and lists `available_filters` — the exception filters the connected adapter actually advertises. Requires a running debug session. Not gated (it only configures the debugger). Feature-detected: on an adapter that advertises no exceptionBreakpointFilters (which also does not answer the request — it would otherwise time out) it ret…
| Parameter | Type | Description |
|---|---|---|
filters | array | Exception filter IDs to enable (default none = clear). Choose from available_filters in the result. |
dbg_set_variable Set variable value
Change a variable's value in a stopped frame (DAP setVariable). DESTRUCTIVE: mutates live program state — confirm with the user and keep this gated. `variables_ref` is the container's variablesReference (from dbg_scopes, or a complex entry in dbg_variables), `name` is the variable's name within it, and `value` is the new value as a GDScript literal/expression. Only meaningful while stopped at a breakpoint.
| Parameter | Type | Description |
|---|---|---|
name * | string | Variable name within that container |
value * | string | New value as a GDScript literal/expression |
variables_ref * | integer | variablesReference of the containing scope/variable (from dbg_scopes or dbg_variables) |
confirm | boolean | Auto-approve this mutation (skip the confirmation prompt) |
dbg_restart Restart debug session
Restart the current debug session. Uses the DAP `restart` request when the adapter advertises `supportsRestartRequest`, otherwise falls back to terminate + relaunch — so it works on every adapter. Reuses the last dbg_launch/dbg_attach parameters; pass `scene` / `stop_on_entry` to override them for a launched session. `method` in the result reports which path ran ('restart' = native DAP restart, 'relaunch' = terminate + fresh handshake). Requires a session started with dbg_launch/dbg_attach. `scene` is held to the same rule as dbg_launch's — inside the project root, existing, non-empty.
| Parameter | Type | Description |
|---|---|---|
scene | string | Override the scene for a launched session: 'main', 'current', res://scene.tscn, or uid://… |
stop_on_entry | boolean | Override stop-at-entry for the restart (launched sessions) |
dbg_goto Go to line (set next statement)
Move the program counter within the current stopped frame — 'set next statement' (DAP gotoTargets + goto). Call with `path` + `line` to list the valid goto targets on that line; when the line has exactly one target (or you pass `target_id`) it jumps there. DESTRUCTIVE: skips or repeats code by moving execution — confirm with the user and keep this gated. Feature-detected: on an adapter that does not advertise `supportsGotoTargetsRequest` it returns a clear "unsupported" message WITHOUT prompting. Measured: no Godot build this project tests advertises it — 4.3-stable and 4.7-stable both r…
| Parameter | Type | Description |
|---|---|---|
line * | integer | 1-based target line |
path * | string | Script path (res://..., absolute, or project-relative) |
confirm | boolean | Auto-approve the jump (skip the confirmation prompt) |
target_id | integer | A specific target id from a prior dbg_goto listing; omit to auto-pick when the line has a single target |
dbg_data_breakpoints Set data breakpoints (watchpoints)
Set (replace) data breakpoints — 'watchpoints' that halt when a variable's value changes (DAP dataBreakpointInfo + setDataBreakpoints). Pass `watch` as a list of { name, variables_ref?, access_type? }: each name is resolved to a dataId via dataBreakpointInfo, then every resolvable id is armed in one setDataBreakpoints call. The result reports the armed `breakpoints` (each with its resolved data_id and verified flag) and any `unresolved` variables the adapter cannot watch. Requires a running session; NOT gated (it only configures the debugger). Feature-detected: on an adapter that does not ad…
| Parameter | Type | Description |
|---|---|---|
watch | array | Variables to watch; omit or [] to clear all data breakpoints |
cs_dbg_launch Launch C# debug session
Start a C# Godot game under netcoredbg. `program` defaults to the configured Mono/.NET Godot binary (GODOT_CSHARP_BIN) and `args` to ['--path', <C# project>]; override either to debug a different .NET program. Any breakpoints set beforehand are applied during the handshake. Requires netcoredbg (GODOT_CSDAP_CMD) — absent, the lazy spawn fails with an actionable hint rather than hanging. A launch the adapter rejects (a program that does not exist, or is not a .NET assembly) is reported as an error: it previously answered state 'running' for a session that never started. With `stop_on_entry` th…
| Parameter | Type | Description |
|---|---|---|
allow_port_conflict | boolean | Launch even though the runtime bridge port is already bound (default false). Only consulted when this looks like a Godot launch — the program is named godot, or the args carry Godot's --path project… |
args | array | Program arguments (default: ['--path', <C# project>]) |
just_my_code | boolean | Restrict stepping/breakpoints to user code (netcoredbg justMyCode; default true) |
program | string | Path to the program to launch (default: the Mono/.NET Godot binary) |
stop_on_entry | boolean | Break at entry (default false) |
cs_dbg_attach Attach C# debug session
Attach netcoredbg to an already-running .NET process (e.g. a C# Godot game launched separately) by its OS process id. Any breakpoints set beforehand are applied during the handshake. A process id nothing is running under is refused rather than reported as an attached session; a process owned by another user is a legitimate target and is not refused.
| Parameter | Type | Description |
|---|---|---|
process_id * | integer | OS process id of the running .NET process to attach to |
cs_dbg_set_breakpoints Set C# breakpoints
Set (replace) the breakpoints for a C# source file. Applied immediately if a session is running, else buffered until launch/attach. Feature-detected: the per-line `conditions` modifier is only sent when the connected adapter advertises supportsConditionalBreakpoints (netcoredbg does); on an adapter that advertises it unsupported the modifier is dropped and the result carries `unsupported_modifiers` plus a `warning`. Detection needs a live session, so set conditions after cs_dbg_launch/cs_dbg_attach. A path that names nothing, or names a directory, is refused: it previously answered exactly lik…
| Parameter | Type | Description |
|---|---|---|
lines * | array | 1-based line numbers |
path * | string | C# script path (res://..., absolute, or relative to the C# project root) |
conditions | array | Optional per-line condition expressions (aligned to lines, null to skip); break only when the expression is true |
cs_dbg_continue Continue (C#)
Resume execution and wait for the program to settle again (next breakpoint or termination). Returns the resulting state; if it runs on with no further breakpoint, reports state 'running'.
cs_dbg_step Step (C#)
Step execution: 'over' (next), 'in' (stepIn), or 'out' (stepOut), then wait for the step to land. Returns the resulting state and stop reason.
| Parameter | Type | Description |
|---|---|---|
kind * | string | Step kind |
cs_dbg_stack_trace Stack trace (C#)
Return the current C# call stack (only meaningful while stopped at a breakpoint).
| Parameter | Type | Description |
|---|---|---|
levels | integer | Max frames (default 20) |
cs_dbg_scopes Scopes (C#)
Return the variable scopes (Locals, etc.) for a C# stack frame.
| Parameter | Type | Description |
|---|---|---|
frame_id * | integer | Frame id from cs_dbg_stack_trace |
cs_dbg_variables Variables (C#)
List variables under a scope or a complex value (via its variables_ref).
| Parameter | Type | Description |
|---|---|---|
variables_ref * | integer | variablesReference from cs_dbg_scopes or a parent variable |
cs_dbg_set_variable Set C# variable value
Change a variable's value in a stopped C# frame (DAP setVariable). DESTRUCTIVE: mutates live program state — confirm with the user and keep this gated. `variables_ref` is the container's variablesReference (from cs_dbg_scopes, or a complex cs_dbg_variables entry), `name` is the variable within it, `value` is the new value as a C# literal/expression. Feature-detected: on an adapter that advertises supportsSetVariable:false it returns a clear "unsupported" message WITHOUT prompting; otherwise a bounded deadline turns a non-answering adapter into a clear message rather than a hang.
| Parameter | Type | Description |
|---|---|---|
name * | string | Variable name within that container |
value * | string | New value as a C# literal/expression |
variables_ref * | integer | variablesReference of the containing scope/variable (from cs_dbg_scopes or cs_dbg_variables) |
confirm | boolean | Auto-approve this mutation (skip the confirmation prompt) |
cs_dbg_watch Watch expressions (C#)
Manage a persistent set of C# watch expressions and evaluate them in the current stopped frame. Pass `add`/`remove`/`clear` to mutate the set (all optional), then every current watch is re-evaluated and returned. Call with no mutation args to just re-read the watches after a step/continue. Expressions are evaluated in DAP `watch` context (intended to be side-effect-free), so this is not gated; the results are only meaningful while the program is stopped at a breakpoint.
| Parameter | Type | Description |
|---|---|---|
add | array | Expressions to add to the watch set |
clear | boolean | Clear all watches before applying add (default false) |
frame_id | integer | Frame id from cs_dbg_stack_trace; omit for the top frame |
remove | array | Expressions to remove from the watch set |
cs_dbg_set_exception_breakpoints Set C# exception breakpoints
Enable (replace) the debugger's exception breakpoint filters so execution halts when a matching .NET exception is thrown (DAP setExceptionBreakpoints). Pass the filter IDs to enable; call with no filters (or []) to clear them. The result echoes the active filters and lists `available_filters` — the exception filters the connected adapter advertises (netcoredbg exposes `all` for every thrown exception and `user-unhandled`). A filter id the adapter does not advertise is refused by name, listing the real ones, rather than forwarded to the adapter as an opaque failure. Requires a running debug s…
| Parameter | Type | Description |
|---|---|---|
filters | array | Exception filter IDs to enable (default none = clear). Choose from available_filters in the result (netcoredbg: 'all', 'user-unhandled'). |
cs_dbg_restart Restart C# debug session
Restart the current C# debug session. Uses the DAP `restart` request when the adapter advertises `supportsRestartRequest`, otherwise falls back to terminate + relaunch — so it works on every adapter (netcoredbg advertises none, so the relaunch path runs). Reuses the last cs_dbg_launch/cs_dbg_attach parameters; pass `stop_on_entry` / `program` / `args` to override them for a launched session. `method` in the result reports which path ran ('restart' = native DAP restart, 'relaunch' = terminate + fresh handshake). Requires a session started with cs_dbg_launch/cs_dbg_attach.
| Parameter | Type | Description |
|---|---|---|
args | array | Override the program arguments (launched sessions) |
program | string | Override the launched program (launched sessions) |
stop_on_entry | boolean | Override stop-at-entry for the restart (launched sessions) |
runtime_get_tree Runtime scene tree
Traverse the LIVE SceneTree of the running game (name, type, path, visibility, children).
| Parameter | Type | Description |
|---|---|---|
max_depth | integer | Max recursion depth (default 64) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_get_property Runtime get property
Read a property from a live node (path relative to the current scene; '/root/...' absolute allowed).
| Parameter | Type | Description |
|---|---|---|
path * | string | |
property * | string | |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_set_property Runtime set property
Set a property on a live node. DESTRUCTIVE (mutates running game state) — gated by confirmation. Rich types use the {"__type__":...} convention.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
property * | string | |
value * | ||
confirm | boolean | Skip the confirmation prompt (auto-approve) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_emit_signal Runtime emit signal
Emit a signal from a live node. DESTRUCTIVE — gated by confirmation. args must match the arity of the signal's CONNECTED callables, or the emission fails with emit_failed and no handler runs. Argument types are not checked, and a signal with no listeners always succeeds — so emitted:true does not mean a handler ran.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
signal * | string | |
args | array | |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_inject_input Runtime inject input
Inject a synthetic input event for automated play-testing. DESTRUCTIVE. event.kind is 'action' | 'key' | 'mouse_button' | 'mouse_motion' | 'joypad_button' | 'joypad_motion' | 'pointer' | 'midi'. key: keycode, physical_keycode and key_label left out are filled from the one given. pointer: action press|move|release|tap|drag at x,y (to_x,to_y) in runtime_screenshot frame pixels. midi: an InputEventMIDI; a pitch_bend's 14-bit value goes in pitch, where Godot stores it. Example: {"kind":"action","action":"jump","pressed":true}.
| Parameter | Type | Description |
|---|---|---|
event * | object | |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_get_monitors Runtime performance monitors
Read live Performance monitors (FPS, draw calls, node count, physics, audio output latency, ...), and the game's own, by the id it registered (Performance.add_custom_monitor). Pass specific keys or omit for all. Keys include time/fps, render/total_draw_calls, audio/output_latency.
| Parameter | Type | Description |
|---|---|---|
keys | array | |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_read_state Runtime read state
Read state the game exposes as JSON: call a function it registered in Engine metadata "breakpoint_state" (name -> Callable, set in its own debug code). Read-only, no confirmation.
| Parameter | Type | Description |
|---|---|---|
args | array | Reader arguments (tagged-Variant convention) |
name | string | Registered reader to call; omit to list the names |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_screenshot Runtime screenshot
Capture the current game frame as a PNG and return it as image content so the assistant can see the running game.
| Parameter | Type | Description |
|---|---|---|
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_screenshot_save Runtime screenshot save
Save the current game frame as a PNG at a new project path; returns no image, never overwrites. Makes runtime_screenshot_diff's reference.
| Parameter | Type | Description |
|---|---|---|
path * | string | res:// path of the .png to create; refused if it exists |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_audio_capture Capture and measure the running game's sound
Listen to the running game for a few seconds of real time: a capture effect at the end of an audio bus collects what it plays, then it is measured like godot_record's recording (LUFS, peaks, clipping, octave bands, spectrogram).
| Parameter | Type | Description |
|---|---|---|
bus | string | Audio bus to capture (default Master) |
compare_to | string | An earlier WAV to compare this capture against |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
seconds | number | Seconds to listen (default 3) |
runtime_get_log Runtime log
Read the runtime log ring buffer (entries game code pushed via BreakpointRuntimeBridge.push_log). Use since_seq for incremental reads.
| Parameter | Type | Description |
|---|---|---|
levels | array | Filter to these levels, e.g. ["error","warning"] |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
since_seq | integer | Return only entries with seq greater than this (default 0) |
runtime_assert_node_state Runtime assert node state
Assert that properties of a LIVE node equal expected values (read-only verification). Reports per-property mismatches; supports an optional absolute numeric tolerance.
| Parameter | Type | Description |
|---|---|---|
expect * | object | Map of property name -> expected value (JSON; use the tagged-Variant form for complex types like Vector2/Color) |
path * | string | Node path (relative to the current scene; '/root/...' absolute allowed) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
tolerance | number | Absolute tolerance for numeric comparisons (default 0 = exact match) |
runtime_assert_scene_structure Runtime assert scene structure
Assert the LIVE SceneTree matches structural expectations (read-only). Each entry asserts a node exists at a path (and, if given, is of a class via is_class); set absent:true to assert it is NOT present.
| Parameter | Type | Description |
|---|---|---|
expect * | array | List of node expectations: {path, type?, absent?}. |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_assert_perf Runtime assert perf
Assert that live Performance monitors meet a caller-supplied baseline within tolerance (read-only). Capture the baseline earlier with runtime_get_monitors and pass it back inline.
| Parameter | Type | Description |
|---|---|---|
baseline * | object | Monitor key -> baseline value (capture earlier via runtime_get_monitors) |
direction | object | Per-key override of the pass direction (defaults: time/fps higher_better, else lower_better) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
tolerance | number | Fractional tolerance applied to each comparison (default 0 = exact) |
runtime_assert_screen_text Runtime assert screen text
Assert that on-screen text is present (or absent) by scanning visible Control text in the LIVE scene tree (read-only; no OCR). Sees text on Label / RichTextLabel / Button / LineEdit / TextEdit / CheckBox / LinkButton and similar; does NOT see text drawn directly to the canvas or baked into textures.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text (or regular expression) to look for |
case_sensitive | boolean | Case-sensitive match (default false) |
min_count | integer | Require at least this many matches (implies present) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
present | boolean | Assert the text IS present (default true); set false to assert it is absent |
regex | boolean | Treat `text` as a regular expression (default false = substring) |
runtime_screenshot_diff Runtime screenshot diff
Capture the current frame and compare it to a reference PNG at a project path, returning diff stats and a pass/fail vs tolerance (read-only; the diff is computed engine-side so the host stays dependency-free). Establish the reference first with runtime_screenshot_save.
| Parameter | Type | Description |
|---|---|---|
reference * | string | res:// or user:// path to the reference PNG |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
per_channel_threshold | integer | Per-channel delta (0-255) for a pixel to count as different (default 0) |
region | object | Optional sub-region (applied to both frame and reference) to compare |
tolerance | number | Max fraction of differing pixels that still passes (default 0) |
runtime_await_condition Runtime await condition
Poll a property on a LIVE node until it satisfies a comparison, or a timeout elapses (read-only verification). op is eq | ne | gt | ge | lt | le (the ordered operators require numeric values). Use this to wait for the running game to reach a state before asserting on it — e.g. wait for hp le 0, then runtime_assert_screen_text. An unreachable runtime bridge is retried until the timeout rather than failing on the first poll, so this tool can also be used to wait for a game that is still booting.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path (relative to the current scene; '/root/...' absolute allowed) |
property * | string | Property to read on each poll |
value * | Value to compare the property against (tagged-Variant form for complex types) | |
op | string | Comparison operator (default eq) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
poll_interval_ms | integer | Delay between polls, in ms (default 100) |
timeout_ms | integer | Maximum time to wait, in ms (default 5000) |
runtime_anim_play Runtime play animation
Play an animation on a LIVE AnimationPlayer node. DESTRUCTIVE (drives the running game) — gated by confirmation. Omit `animation` to (re)play the currently-assigned one.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to an AnimationPlayer node in the running scene |
animation | string | Animation name to play (default: the current/assigned animation) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
custom_speed | number | Playback speed multiplier (default 1.0; negative not supported here) |
from_end | boolean | Start playback from the end (default false) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_anim_stop Runtime stop animation
Stop (or pause) a LIVE AnimationPlayer node. DESTRUCTIVE (drives the running game) — gated by confirmation. keep_state:true pauses in place; false (default) stops.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to an AnimationPlayer node in the running scene |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
keep_state | boolean | Pause in place instead of stopping (default false) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_anim_get_state Runtime animation state
Read the playback state of a LIVE AnimationPlayer (read-only): current animation, whether it is playing, position, length, speed scale, and the list of available animations.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to an AnimationPlayer node in the running scene |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_node_add Runtime add node
Add a node to the LIVE running game as a child of `parent`. DESTRUCTIVE — gated by confirmation. Provide `scene` (a res:// PackedScene to instantiate) OR `type` (a ClassDB class to instantiate); `name` renames it.
| Parameter | Type | Description |
|---|---|---|
parent * | string | Path to the parent node in the running scene |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
name | string | Optional name for the new node A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
scene | string | res:// path to a PackedScene to instantiate — mutually exclusive with `type` |
type | string | Class name to instantiate (e.g. Node2D) — mutually exclusive with `scene` |
runtime_node_remove Runtime remove node
Remove (queue_free) a node from the LIVE running game. DESTRUCTIVE — gated by confirmation. Refuses to remove the current scene root.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the node to remove in the running scene |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_time_scale Runtime time scale
Set Engine.time_scale on the running game: 0 freezes time, 1 is normal, >1 fast, <1 slow-motion. DESTRUCTIVE (alters the running game's clock) — gated by confirmation. Freeze with scale 0, then runtime_step_frames to advance deterministically before asserting.
| Parameter | Type | Description |
|---|---|---|
scale * | number | 0 = freeze, 1 = normal, N = slow/fast (negative is clamped to 0) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_step_frames Runtime step frames
Advance the running game by an exact number of frames while otherwise frozen, for deterministic, frame-accurate playtesting. DESTRUCTIVE — gated by confirmation. `kind` selects which loop to tick each step: idle (default), physics, or both. Pair with runtime_time_scale{scale:0} to freeze, then assert.
| Parameter | Type | Description |
|---|---|---|
frames * | integer | Number of frames to advance |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
kind | string | Which loop to tick each step (default idle) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_state_digest Runtime state digest
Capture a compact, stable-ordered JSON snapshot of a live subtree's salient state (read-only) — position, rotation, scale, visibility, and modulate by default, or a caller-supplied field list. Deterministic ordering makes it ideal for frame-by-frame comparison alongside runtime_step_frames.
| Parameter | Type | Description |
|---|---|---|
root * | string | Root node path in the running scene |
fields | array | Property names to capture per node (default: position/global_position/rotation/scale/visible/modulate when present) |
max_depth | integer | Max recursion depth (default 8) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_seed_rng Runtime seed RNG
Seed the running game's GLOBAL random number generator (GDScript seed()) so a playtest is reproducible. DESTRUCTIVE (changes RNG state) — gated by confirmation. Seeds only the global RNG (randi/randf), not per-instance RandomNumberGenerators or physics determinism. IMPORTANT when comparing peers: this is ONE stream shared by every caller in the project, and FREEZING DOES NOT STOP IT BEING CONSUMED — time_scale 0 makes delta 0 but _process/_physics_process still fire, so code that draws unconditionally burns draws at wall-clock rate even while frozen, including in the gap between this call…
| Parameter | Type | Description |
|---|---|---|
seed * | integer | Seed value for the global RNG |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
peer | string | Headless peer id from runtime_spawn_peers; omit for the default running game. |
runtime_peer_stop Runtime stop peer(s)
Terminate a headless peer started by runtime_spawn_peers, or every one with all:true. DESTRUCTIVE (kills a child process). Stopping an already-stopped peer is a no-op, so this is safe to repeat; peers are also killed automatically when the server shuts down.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Stop every peer this server spawned (default false) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
id | string | Peer id to stop (from runtime_spawn_peers) — omit when using all |
runtime_peers_digest Runtime peer state digest / convergence
Compare runtime_state_digest across two or more peers over the SAME root and field set (read-only): converged when every peer's digest is byte-equal, otherwise diverged_at names the node paths that disagree. The sequence that converges: runtime_spawn_peers, then per peer runtime_time_scale{scale:0} to FREEZE FIRST, runtime_set_property{peer} to equalise the starting state, runtime_seed_rng{seed} with one seed, runtime_step_frames{frames:K,kind:"physics"}, then this. FOUR PRECONDITIONS, measured on Godot 4.3 (convergence re-measured on 4.7); skip any one and the peers diverge. (1) Step the fixe…
| Parameter | Type | Description |
|---|---|---|
root * | string | Root node path to digest in each peer (same path on every peer) |
fields | array | Property names to capture per node (default: the runtime_state_digest defaults) |
max_depth | integer | Max recursion depth (default 8) |
peers | array | Peer ids to compare (default: every live peer; at least two are required) |
godot_output Read managed process output
Read captured console output for a managed process (from godot_run_managed). Use since_seq for incremental reads.
| Parameter | Type | Description |
|---|---|---|
id * | string | Process id from godot_run_managed |
since_seq | integer | Only lines with seq greater than this (default 0) |
stream | string | Filter by stream (default both) |
godot_stop Stop managed process
Terminate a game started by godot_run_managed or godot_run_project.
| Parameter | Type | Description |
|---|---|---|
id * | string | Id from godot_run_project or godot_run_managed |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
project_search Search project files
Full-text (or regex) search across the project's source files (ripgrep-style). Read-only. Returns one match per line with its res:// path, 1-based line and column, and the matching text. Binary and oversized files are skipped; caches (.git/.godot/.import/node_modules) are never searched.
| Parameter | Type | Description |
|---|---|---|
query * | string | Text to find (literal by default; a regular expression when regex=true) |
extensions | array | File extensions to include, without the dot (default: gd,cs,tscn,tres,gdshader,godot,cfg,json,md,txt,…) |
ignore_case | boolean | Case-insensitive match (default false) |
max_results | integer | Cap on returned matches (default 200) |
path | string | Limit the search to a res:// or project-relative subdirectory (default: whole project) |
regex | boolean | Treat query as a JavaScript regular expression (default false = literal) |
find_symbol Find symbol declarations
Locate where GDScript symbols are DECLARED across the project — class_name, inner class, func, signal, enum, const and var. Read-only project index. This is the workspace-symbol answer Godot's language server does not implement (gd_workspace_symbols returns 'unsupported'); for the semantic, position-based lookup on a single build use gd_definition instead.
| Parameter | Type | Description |
|---|---|---|
name * | string | Symbol name to look for |
exact | boolean | Require an exact name match (default false = substring) |
kinds | array | Restrict to these declaration kinds (default: all) |
max_results | integer | Cap on returned declarations (default 200) |
find_usages Find identifier usages
Find every word-boundary occurrence of an identifier across the project's source files. Read-only. The project-wide, build-independent complement to gd_references (which needs the live language server and a cursor position). Returns res:// path, 1-based line/column and the line text for each hit.
| Parameter | Type | Description |
|---|---|---|
name * | string | Identifier to find (matched on word boundaries) |
extensions | array | File extensions to include, without the dot (default: gd,cs,tscn,tres,gdshader) |
ignore_case | boolean | Case-insensitive match (default false) |
max_results | integer | Cap on returned usages (default 200) |
example_snippet Look up a GDScript idiom
Return curated, ready-to-adapt GDScript snippets for common Godot tasks (signals, autoload singletons, input, tweens, timers, scene changes, saving, RNG, groups, state machines, HTTP, @onready). Read-only. Omit the query to list every available topic id.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max snippets to return (default 5) |
query | string | Topic or keywords, e.g. "tween", "save json", "connect signal". Omit to list all topics. |
godot_record Record and measure the game's sound
Run the project (or one scene) under Godot's Movie Maker: frames and sound advance in exact lockstep at a fixed frame rate, so a recording does not depend on the machine's speed. Then measure the sound — loudness (LUFS), sample and true peak, clipping, octave bands — and return a spectrogram picture. Opens a game window for the run. The WAV stays in the project for audio_analyze.
| Parameter | Type | Description |
|---|---|---|
compare_to | string | An earlier WAV to compare this recording against |
fps | integer | Fixed frame rate (default 60) |
keep_frames | boolean | Keep PNG frames; WAV then 32-bit (default false) |
scene | string | Scene to record, e.g. res://levels/boss.tscn (default: the main scene) |
seconds | number | Length of game time to record (default 5) |
user_args | array | Arguments passed to the game after -- |
audio_analyze Measure a WAV (or compare two)
Measure a WAV file in the project: loudness (LUFS), sample and true peak, clipping, octave bands, and a spectrogram picture. With compare_to, also report this file minus that one, metric by metric and band by band.
| Parameter | Type | Description |
|---|---|---|
path * | string | WAV file, e.g. a sound.wav that godot_record wrote |
compare_to | string | A second WAV, the 'before' of the comparison |
vcs_status Git status
Working-tree status of the project's git repository, every path project-relative. Changes elsewhere in the repository are listed separately in `outside_project`. Read-only; errors clearly if the project path is not a git work tree.
vcs_log Git log
Recent commits, newest first: full and short hash, author, ISO author date, and subject. Recent commits, newest first. Optionally limit to commits touching a path (res:// or project-relative); a path matching nothing is refused, not answered empty. Read-only.
| Parameter | Type | Description |
|---|---|---|
max_count | integer | Max commits to return (default 20) |
path | string | Only commits touching this path (res:// or project-relative) |
vcs_diff Git diff
Unified diff of the working tree (default) or the staged index (staged=true), optionally scoped to a single path (res:// or project-relative). Returns the patch (tail-truncated) plus the changed-file list, both project-relative. A path matching nothing is refused, not answered empty. Read-only.
| Parameter | Type | Description |
|---|---|---|
path | string | Restrict the diff to this path (res:// or project-relative) |
staged | boolean | Diff the staged index vs HEAD instead of the working tree (default false) |
vcs_show Git show
Inspect a commit or a file at a revision. With no path: commit metadata (hash, author, date, subject, body) plus its patch (tail-truncated). With a path: the file's full content at that ref. `ref` defaults to HEAD and accepts any revision (branch, tag, sha, HEAD~2). Read-only.
| Parameter | Type | Description |
|---|---|---|
path | string | If set, return this file's content at <ref> instead of the commit |
ref | string | Revision to show (default HEAD): branch, tag, sha, or HEAD~n |
vcs_branch_list Git branches
List branches with their short object name and a flag for the current branch. Local only by default; set remotes=true to include remote-tracking branches (flagged remote=true). On a detached HEAD, `current` is null and `detached` is true — matching vcs_status — and no pseudo-branch is listed. Read-only.
| Parameter | Type | Description |
|---|---|---|
remotes | boolean | Include remote-tracking branches (default false) |
vcs_blame Git blame
Per-line last-change attribution for a file: for each line, the short commit, author, ISO date, and the line text. Optionally restrict to a [start,end] line range (1-based, inclusive); either bound may be given alone (start alone runs to end-of-file). Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string | File to blame (res:// or project-relative) |
end | integer | Last line (1-based, inclusive). May be given without `start`. |
start | integer | First line (1-based, inclusive). May be given without `end`. |
vcs_add Git add (stage)
Stage changes for the next commit. With `paths`, stages exactly those (res:// or project-relative); omit `paths` to stage everything (git add -A). Returns the resulting staged file list. Reversible with vcs_restore-staged / `git restore --staged`, so not gated.
| Parameter | Type | Description |
|---|---|---|
paths | array | Paths to stage (res:// or project-relative). Omit to stage all. |
vcs_commit Git commit
Commit the currently staged changes with a message. Reversible (`git reset --soft HEAD~1`) and loses nothing, so not gated. Errors clearly if nothing is staged. Commit signing is disabled for this call so it can never block on a passphrase prompt.
| Parameter | Type | Description |
|---|---|---|
message * | string | Commit message |
vcs_restore Git restore (discard changes)
Discard uncommitted working-tree changes to the given paths, restoring them from the index/HEAD (`git restore -- <paths>`). DESTRUCTIVE — the discarded edits are unrecoverable — so it is elicitation-gated: pass confirm:true to bypass the prompt on clients that can't elicit. `restored` is MEASURED, not echoed: it lists only the paths git actually changed, so a path with nothing to discard is absent from it rather than reported as discarded work. `requested` carries what you asked for, and `stranded` names any path still dirty afterwards (a partial, not an error).
| Parameter | Type | Description |
|---|---|---|
paths * | array | Paths to discard changes for (res:// or project-relative) |
confirm | boolean | Skip the confirmation prompt |
vcs_stash Git stash
Manage stashes: op='push' saves and reverts your working changes (optional message); 'pop' re-applies the latest stash; 'list' returns the stash entries; 'drop' deletes a stash entry. 'push' and 'drop' are destructive and elicitation-gated (confirm:true bypasses) — push reverts every uncommitted change in the working tree, and drop deletes an entry unrecoverably; pop and list are not gated. op='push' ERRORS when nothing was stashed (no tracked file has uncommitted changes) rather than reporting success — a success there would tell you work is parked when it is not. Untracked files are neve…
| Parameter | Type | Description |
|---|---|---|
op * | string | Stash operation |
confirm | boolean | Skip the confirmation prompt (op='push' / op='drop') |
message | string | Message for op='push' |
ref | string | Stash ref for op='drop'/'pop', e.g. stash@{1} (default latest) |
vcs_branch_create Git branch (create)
Create a new branch, optionally starting from a given ref (default HEAD), and optionally switch to it. Reversible (`git branch -d`), so not gated. Errors clearly if the branch already exists. If switch=true and the switch is refused (e.g. local changes would be overwritten), the error SAYS the branch was still created — create and switch are two git calls and only the second can fail.
| Parameter | Type | Description |
|---|---|---|
name * | string | New branch name |
from | string | Start point (branch, tag, or sha; default HEAD) |
switch | boolean | Switch to the new branch after creating it (default false) |
vcs_switch Git switch (branch)
Switch to an existing branch (`git switch <branch>`). No --force: if local changes would be overwritten, git refuses and its message is returned unchanged — nothing is clobbered — so this is not gated.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Existing branch to switch to |
asset_gen_placeholder Generate a placeholder asset
Write a deterministic, in-engine PROCEDURAL placeholder asset to a res:// path — no model, fully reproducible (colour/frequency/size derive from a hash of the prompt). Always available regardless of the configured backend. kind picks the asset (all native .tres resources that load synchronously): sprite/texture/icon → an ImageTexture; audio_sfx → an AudioStreamWAV; model → a BoxMesh/primitive mesh. DESTRUCTIVE (writes a file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
kind * | string | Asset kind: sprite | texture | icon | audio_sfx | model |
to_path * | string | Destination res:// path; the correct extension is appended if omitted |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
duration_ms | integer | Length in ms for audio_sfx (default 300) |
height | integer | Image height for sprite/texture/icon (default per-kind) |
overwrite | boolean | Replace if it exists |
prompt | string | Seed text — deterministically colours/tunes/sizes the placeholder |
shape | string | Primitive for model (default box) |
width | integer | Image width for sprite/texture/icon (default per-kind) |
mp_add_spawner Add MultiplayerSpawner
Add a MultiplayerSpawner node under a parent (undoable). Godot 4 high-level multiplayer replicates server-spawned nodes to clients: set spawn_path to the node whose children are auto-replicated, and register the scenes it may spawn. Pure node authoring — no service is started.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
name | string | Node name (default MultiplayerSpawner) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
spawn_path | string | NodePath (relative to the spawner) whose children are auto-replicated |
spawnable_scenes | array | res:// scenes the spawner may instantiate (add_spawnable_scene) |
mp_add_synchronizer Add MultiplayerSynchronizer
Add a MultiplayerSynchronizer node under a parent (undoable) and, if properties are given, build a SceneReplicationConfig that replicates them. root_path is the node the property NodePaths are relative to (default "..", the synchronizer's parent). Property paths look like ".:position" or "Sprite2D:rotation". Pure node authoring — no service is started.
| Parameter | Type | Description |
|---|---|---|
parent_path * | string | Parent node path relative to the scene root; "." for the root |
name | string | Node name (default MultiplayerSynchronizer) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`. |
properties | array | Property NodePaths to replicate, e.g. [".:position", ".:rotation"] |
replication_mode | string | Replication mode for the properties (default always) |
root_path | string | NodePath the replicated property paths are relative to (default "..") |
mp_set_authority Set multiplayer authority
Set a node's multiplayer authority (set_multiplayer_authority) to a peer id (undoable). The authority peer is the one allowed to push "authority"-mode RPCs and MultiplayerSynchronizer state for that node. peer_id 1 is the server. Pure node authoring.
| Parameter | Type | Description |
|---|---|---|
path * | string | Node path relative to the scene root |
peer_id * | integer | Peer id to grant authority (1 = server) |
recursive | boolean | Also apply to descendants (default true) |
mp_setup_enet_peer Scaffold an ENet peer script
Generate a GDScript helper that sets up an ENetMultiplayerPeer (host_game / join_game / close) and assigns multiplayer.multiplayer_peer. Godot's default, always-available transport. DESTRUCTIVE (writes a .gd file) — gated by confirmation. No service is started; you call host_game()/join_game() at runtime.
| Parameter | Type | Description |
|---|---|---|
to_path * | string | Destination res:// .gd path, e.g. res://net/enet_peer.gd |
class_name | string | Optional class_name for the generated script |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
max_clients | integer | Server max clients (default 32) |
overwrite | boolean | Overwrite if the file already exists (default false) |
port | integer | Default port baked into the script (default 24565) |
mp_setup_webrtc_peer Scaffold a WebRTC peer script
Generate a GDScript helper that sets up a WebRTCMultiplayerPeer mesh and assigns multiplayer.multiplayer_peer. FEATURE-DETECTED: if the WebRTC module/extension is absent from this Godot build, the tool degrades to a clear "unsupported" result and writes nothing (never a dead call). DESTRUCTIVE (writes a .gd file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
to_path * | string | Destination res:// .gd path, e.g. res://net/webrtc_peer.gd |
class_name | string | Optional class_name for the generated script |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Overwrite if the file already exists (default false) |
mp_wire_rpc Wire an @rpc annotation
Insert (or replace) an `@rpc(...)` annotation above a function in an existing GDScript, so it can be called across the network. If the function does not exist, a stub is appended carrying the annotation. Operates on the on-disk file (save the script in the editor first if it has unsaved changes). DESTRUCTIVE (rewrites the .gd file) — gated.
| Parameter | Type | Description |
|---|---|---|
function * | string | Function name to annotate (a stub is created if absent) |
path * | string | res:// .gd script to modify |
call_local | boolean | Also invoke locally on the caller (default false → call_remote) |
channel | integer | Transfer channel (default 0) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
mode | string | Who may call it: 'authority' (default) or 'any_peer' |
transfer_mode | string | Transfer mode: 'unreliable' (default), 'unreliable_ordered', or 'reliable' |
mp_scaffold_lobby Scaffold a multiplayer lobby
Generate a lobby controller GDScript: host/join over ENet plus peer_connected/peer_disconnected tracking with player_joined / player_left / server_started / join_succeeded / join_failed signals. Attach it to your lobby scene root. DESTRUCTIVE (writes a .gd file) — gated by confirmation. No service is started.
| Parameter | Type | Description |
|---|---|---|
to_path * | string | Destination res:// .gd path, e.g. res://net/lobby.gd |
class_name | string | Optional class_name for the generated script |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
max_players | integer | Server max players (default 8) |
overwrite | boolean | Overwrite if the file already exists (default false) |
port | integer | Default port baked into the script (default 24565) |
backend_detect Detect installed backend SDKs
Report which of the known game-backend SDKs (SilentWolf, Nakama, PlayFab, Photon) are installed in this project and how each was found (an enabled autoload, an addon directory under res://addons, or a global class_name). Read-only — nothing is written. Use it before backend_configure / *_scaffold to see what you can generate against.
| Parameter | Type | Description |
|---|---|---|
sdk | string | Focus the report on a single SDK (default: report all four) |
backend_configure Scaffold a backend SDK config
Generate a config/bootstrap GDScript for a game-backend SDK (SilentWolf / Nakama / PlayFab / Photon): a Node whose configure() wires the API key / game id / host / title id from constants you fill in. Register it as an autoload so it runs at startup. FEATURE-DETECTED: if the SDK is not installed, degrades to a clear 'install <SDK> first' result and writes nothing. DESTRUCTIVE (writes a .gd file) — gated by confirmation.
| Parameter | Type | Description |
|---|---|---|
sdk * | string | Which backend SDK to configure |
api_key | string | SilentWolf API key baked into the script |
app_id | string | Photon app id |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
game_id | string | SilentWolf game id |
host | string | Nakama host (default 127.0.0.1) |
overwrite | boolean | Overwrite if the file already exists (default false) |
port | integer | Nakama port (default 7350) |
region | string | Photon region (default us) |
server_key | string | Nakama server key (default defaultkey) |
title_id | string | PlayFab title id |
to_path | string | Destination res:// .gd path (default res://backend/<sdk>_config.gd) |
leaderboard_scaffold Scaffold leaderboard integration
Generate submit/fetch leaderboard helpers against an installed backend SDK. FEATURE-DETECTED both ways: if the SDK provides no leaderboard API (Photon is realtime transport), degrades to 'unsupported_feature'; if the SDK is not installed, degrades to 'install <SDK> first'. Neither writes anything. DESTRUCTIVE (writes a .gd) — gated.
| Parameter | Type | Description |
|---|---|---|
sdk * | string | Which backend SDK to target |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
leaderboard_name | string | Leaderboard id / statistic name baked into the script (default 'main') |
overwrite | boolean | Overwrite if the file already exists (default false) |
to_path | string | Destination res:// .gd path (default res://backend/leaderboard.gd) |
cloudsave_scaffold Scaffold cloud-save integration
Generate save/load cloud-save helpers against an installed backend SDK. FEATURE-DETECTED both ways: if the SDK provides no cloud-save API (Photon is realtime transport), degrades to 'unsupported_feature'; if the SDK is not installed, degrades to 'install <SDK> first'. Neither writes anything. DESTRUCTIVE (writes a .gd) — gated.
| Parameter | Type | Description |
|---|---|---|
sdk * | string | Which backend SDK to target |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Overwrite if the file already exists (default false) |
to_path | string | Destination res:// .gd path (default res://backend/cloud_save.gd) |
auth_scaffold Scaffold auth integration
Generate login/register/logout helpers against an installed backend SDK. FEATURE-DETECTED both ways: if the SDK provides no auth API (Photon is realtime transport), degrades to 'unsupported_feature'; if the SDK is not installed, degrades to 'install <SDK> first'. Neither writes anything. DESTRUCTIVE (writes a .gd) — gated.
| Parameter | Type | Description |
|---|---|---|
sdk * | string | Which backend SDK to target |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Overwrite if the file already exists (default false) |
to_path | string | Destination res:// .gd path (default res://backend/auth.gd) |
card_template_create Create card template
Build a reusable card scene (a PackedScene) from a slot spec, with a generated script-backed set_data() / set_face(). Named slots (label / rich_text / texture / panel / badge) become the card's regions; card_instance and card_deck_from_table bind data to them by slot name. Optional inline theme and a two-sided card back. DESTRUCTIVE (writes a scene + script) — gated by confirmation. Puts the editor back on the scene you had open; `edited_scene` names where it landed.
| Parameter | Type | Description |
|---|---|---|
path * | string | Where to save the template scene, e.g. res://ui/cards/Card.tscn |
size * | object | Card dimensions in px |
slots * | array | Named regions the card exposes |
back | object | Optional card-back state; its presence makes the template two-sided |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
face | array | Slot names shown on the face; omitted → all slots |
overwrite | boolean | Replace an existing template at `path` (default false). With overwrite omitted or false an existing `path` is REFUSED (`exists`) rather than written — before 1.39.0 this flag was declared and never… |
root_type | string | Root node type (default PanelContainer) |
script_path | string | Generated card script path (default derives from `path`) |
theme | object | Inline theme built via theme_create + theme_set_* |
theme_path | string | Use an existing Theme resource (res://…tres); mutually exclusive with inline theme |
card_instance Instance a card
Instance a card template into the open scene and bind data to its slots via the template's set_data(). Undoable node authoring. Slot values are strings/numbers/booleans; any texture slot (e.g. art) takes a res:// texture path. Reports which data keys bound and which had no matching slot.
| Parameter | Type | Description |
|---|---|---|
data * | object | Slot name → value; a texture slot takes a res:// path |
parent * | string | Node path to parent the instance under (in the open scene); "." for the root |
template_path * | string | Card template scene, e.g. res://ui/cards/Card.tscn |
face_up | boolean | Show the face (default true); false shows the back on two-sided cards |
name | string | Optional node name for the instance |
persist | boolean | Bake the bound slot data into the saved scene by enabling Editable Children on the instance (default false = runtime-bound only, reverts on reload) |
position | object | Local position of the instance |
card_hand_layout Lay out a hand of cards
Instance N cards under a container and arrange them as a row, fan, stack, or grid. Undoable node authoring. Each card carries its own data (bound via the template's set_data) and face state.
| Parameter | Type | Description |
|---|---|---|
cards * | array | One entry per card to instance |
mode * | string | Arrangement mode |
parent * | string | Container node path the cards are instanced under; "." for the root |
template_path * | string | Card template scene, e.g. res://ui/cards/Card.tscn |
align | string | Alignment along the layout (default center) |
columns | integer | Grid mode column count |
fan_angle | number | Total fan spread in degrees (fan mode) |
origin | object | Top-left origin offset in px |
overlap | number | px overlap (row / fan / stack) |
persist | boolean | Bake each card's bound slot data into the saved scene by enabling Editable Children on every instanced card (default false = runtime-bound only, reverts on reload) |
spacing | number | px between cards (row / grid) |
card_deck_from_table Stamp a deck from a table
Read a CSV or JSON table and stamp one card per row, binding columns to slots via a column map. Undoable node authoring. column_map values are bare {column} references or composed templates like "{name} · {role}"; a filter selects rows and an optional layout arranges them. Table columns no slot referenced are surfaced (not silently dropped).
| Parameter | Type | Description |
|---|---|---|
column_map * | object | Slot name → column expression (a bare {column} or a composed "{a} · {b}") |
parent * | string | Container node path the cards are instanced under; "." for the root |
table_path * | string | CSV or JSON table on disk (res:// or absolute); format auto-detected by extension unless `format` set |
template_path * | string | Card template scene, e.g. res://ui/cards/Card.tscn |
art_column | string | Column holding a res:// texture path bound to the `art` slot |
face_up | boolean | Show the face (default true) |
filter | object | Optional row selector, e.g. {column:'set', equals:'base'} |
format | string | Override the table format |
layout | object | Optional arrangement (same knobs as card_hand_layout); omitted → stacked at origin |
limit | integer | Cap the number of rows stamped |
persist | boolean | Bake each stamped card's bound slot data into the saved scene by enabling Editable Children on every card (default false = runtime-bound only, reverts on reload) |
card_set_face Flip a card's face
Flip an instanced card (or any node exposing set_face(bool) — the generated card and piece scripts both do) between its face and back. Instant by default: calls the setter now, so the visible side changes immediately. With `animate`, instead authors a reusable flip clip under the node from Group C anim primitives — a scale pinch (1 → edge-on → 1) plus a method key that calls the setter at the edge-on midpoint — played on demand; purely additive (only existing node.* / anim.* ops, never a new engine call). Undoable node authoring. Returns the target state and any authored player / ani…
| Parameter | Type | Description |
|---|---|---|
face_up * | boolean | Target face state: true shows the face, false the back |
node * | string | Node path of the card instance to flip (in the open scene); "." for the root |
animate | object | Optional flip animation; omitted → an instant set_face |
method | string | Setter method invoked with face_up (default "set_face"; the generated card/piece scripts expose it) |
board_create Create board scene
Build a board scene whose children are addressable cells (each a cell_<id> node in the board_cells group) from a ring, grid, or explicit-cells layout. Cells are Marker2D (or Control) anchors positioned by pure layout math; an optional background (color or res:// art) sits behind them. General-purpose — cells carry only caller-supplied ids. DESTRUCTIVE (writes a scene) — gated by confirmation. Puts the editor back on the scene you had open; `edited_scene` names where it landed.
| Parameter | Type | Description |
|---|---|---|
layout * | ring{cells[]} | grid{rows,cols} | cells{cells[{id,x,y}]} | |
path * | string | Where to save the board scene, e.g. res://ui/board/Board.tscn |
background | object | Optional background drawn behind the cells |
cell_kind | string | marker→Marker2D anchor (default), control→Control anchor |
cell_size | number | Cell pitch in px (drives ring radius / grid spacing; default 96) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
overwrite | boolean | Replace an existing board at `path` (default false). With overwrite omitted or false an existing `path` is REFUSED (`exists`) rather than written — before 1.39.0 this flag was declared and never rea… |
root_type | string | Board root node type (default Node2D) |
board_place Place a node on a board cell
Reparent an existing node (a card or piece instance) onto a board cell by id and snap it to the cell anchor. Undoable node authoring. The target cell is <board>/cell_<cell>; `align` offsets the node from the cell origin (default centred). Returns the node's new path.
| Parameter | Type | Description |
|---|---|---|
board * | string | Board root node path in the open scene ("." if the board is the scene root) |
cell * | string | Cell id to place onto (resolves to <board>/cell_<cell>) |
node * | string | Node path of the node to place (a card / piece already in the scene) |
align | object | Offset from the cell origin in px (default 0,0 — centred on the anchor) |
board_tile_create Create tile-backed board
Build a tile-backed board scene: a TileMapLayer grid whose cells are addressable by integer [x, y] tile coordinates (cols wide × rows tall). The layer binds a TileSet — a supplied `tileset` .tres, or a fresh empty one created at <scene>_tiles.tres — so it has a real tile_size (the coordinate frame placement uses); `paint` optionally fills the whole grid with one tile from the bound tileset. General-purpose — cells carry only coordinates. DESTRUCTIVE (writes a scene, and a TileSet .tres unless `tileset` is supplied) — gated by confirmation. Puts the editor back on the scene you had ope…
| Parameter | Type | Description |
|---|---|---|
cols * | integer | Grid column count (cell x ranges 0..cols-1) |
path * | string | Where to save the board scene, e.g. res://ui/board/TileBoard.tscn |
rows * | integer | Grid row count (cell y ranges 0..rows-1) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
layer_name | string | TileMapLayer node name (default "Cells") |
overwrite | boolean | Replace an existing board at `path` (default false). With overwrite omitted or false an existing `path` is REFUSED (`exists`) rather than written — before 1.39.0 this flag was declared and never rea… |
paint | object | Fill the whole grid with one tile (needs an existing `tileset` that has the source); omitted → cells stay empty (a coordinate frame only) |
tile_size | array | Tile cell size [w, h] in px (default [64, 64]); the coordinate frame board_tile_place snaps to |
tileset | string | Existing TileSet res:// .tres to bind; omitted → a fresh empty TileSet is created at <scene>_tiles.tres to establish the tile size |
board_tile_place Place a node on a tile coordinate
Snap an existing node (a card or piece instance) onto a TileMapLayer cell by integer [x, y] tile coordinate. Undoable node authoring. The cell's local position is computed from `tile_size` — centre `(coord + 0.5) × tile_size` (default) or corner `coord × tile_size` — matching Godot's TileMapLayer.map_to_local, plus an optional `align` offset. Decomposes onto node.reparent + node.set_property. Returns the node's new path and local position.
| Parameter | Type | Description |
|---|---|---|
coord * | array | Tile coordinate [x, y] (in cells) |
layer * | string | TileMapLayer node path in the open scene |
node * | string | Node path of the node to place (a card / piece already in the scene) |
align | object | Offset from the anchor in px (default 0,0) |
anchor | string | Snap to the cell centre (default) or its top-left corner |
reparent | boolean | Reparent the node under the layer so the coordinate is layer-local (default true) |
tile_size | array | The layer's tile cell size [w, h] in px (default [64, 64]); must match the board's tile_size |
piece_template_create Create piece template
Build a reusable piece (token) scene from a spec: an Art node (Sprite2D under a Node2D root, TextureRect under a Control root), an optional Label, an optional hit area (Area2D + CollisionShape2D), and an optional two-sided Back, plus a generated script-backed set_data() / set_face(). set_data binds art / color / label; set_face flips face/back visibility. DESTRUCTIVE (writes a scene + script) — gated by confirmation. Puts the editor back on the scene you had open; `edited_scene` names where it landed.
| Parameter | Type | Description |
|---|---|---|
path * | string | Where to save the template scene, e.g. res://ui/pieces/Piece.tscn |
size * | object | Token size in px (drives the hit-area extents and, for a Control root, the Art size) |
art | string | res:// texture bound to the Art node at build time |
back | object | Optional back state; its presence makes the piece two-sided |
color | string | Default Art tint (self_modulate), #RRGGBB or #RRGGBBAA |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
hit_area | object | Optional Area2D + CollisionShape2D for hit-testing |
label | boolean | Include a Label child for the piece name (default true) |
label_text | string | Static Label text shown before any data is bound |
overwrite | boolean | Replace an existing template at `path` (default false). With overwrite omitted or false an existing `path` is REFUSED (`exists`) rather than written — before 1.39.0 this flag was declared and never… |
root_type | string | Root node type (default Node2D → Sprite2D art; Control → TextureRect art) |
script_path | string | Generated piece script path (default derives from `path`) |
piece_instance Instance a piece
Instance a piece template into the open scene and bind data (art / color / label) via the template's set_data(). Undoable node authoring. Optionally place_on a board cell in the same call (reparent + snap via board_place). Reports which data keys bound and which had no matching slot.
| Parameter | Type | Description |
|---|---|---|
data * | object | Slot name → value (art takes a res:// path; color a #RRGGBB; label a string) |
parent * | string | Node path to parent the instance under (in the open scene); "." for the root |
template_path * | string | Piece template scene, e.g. res://ui/pieces/Piece.tscn |
face_up | boolean | Show the face (default true); false shows the back on two-sided pieces |
name | string | Optional node name for the instance |
persist | boolean | Bake the bound data into the saved scene by enabling Editable Children on the instance (default false = runtime-bound only, reverts on reload) |
place_on | object | Optionally place the new piece on a board cell in the same call |
position | object | Local position of the instance (ignored when place_on snaps it to a cell) |
piece_move Move a piece to a cell
Move a piece onto a board cell by id (reparent + snap via board_place), optionally with a short scale "pop" animation authored from Group C anim primitives. Undoable node authoring; purely additive — it emits only existing node / anim ops, never a new engine call. Returns the piece's new path.
| Parameter | Type | Description |
|---|---|---|
board * | string | Board root node path in the open scene ("." if the board is the scene root) |
node * | string | Node path of the piece to move |
to * | string | Destination cell id (resolves to <board>/cell_<to>) |
align | object | Offset from the cell origin in px (default 0,0 — centred on the anchor) |
animate | object | Optional pop animation; omitted → an instant snap |
from | string | Source cell id, echoed in the result for the caller's convenience |
interact_make_draggable Make a node draggable
Wire an existing node for drag-and-drop by attaching a generated reusable drag script (and, for node2d, a drag input action + a hit-area input_event connection). COMPOSES with the node's existing script: if it already has one, the drag script `extends` it, so an authored card keeps its set_data/set_face and merely gains drag (never overwritten). control mode uses Godot's built-in Control drag-and-drop (_get_drag_data hands off {payload, source}, with an optional translucent preview); node2d mode carries the payload and follows the pointer from a button-driven handler. General-purpose — the d…
| Parameter | Type | Description |
|---|---|---|
mode * | string | control→Control _get_drag_data DnD; node2d→Area2D hit region + pointer handler |
node * | string | Node path (in the open scene) to make draggable; "." for the root |
script_path * | string | Where to save the generated drag script, e.g. res://ui/interact/Draggable.gd |
action | string | node2d mode: input action name registered for the drag button (default "drag") |
button | integer | node2d mode: mouse button index that begins the drag (default 1 = left) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
hit_area | string | node2d mode: sub-path to the Area2D whose input_event drives the drag (default the node itself) |
payload | object | Neutral data the drag carries (bound into the script as a Dictionary); default empty |
preview | boolean | control mode: show a translucent drag preview (default false) |
interact_add_drop_zone Add a drop zone
Mark a node as a drop target that validates an incoming payload and emits a signal on a valid drop. Attaches a generated validator/acceptor script that DECLARES the on_drop signal (so it survives a scene reload), and (for node2d) builds an Area2D + CollisionShape2D hit region; optionally connects on_drop to a handler with a persisted connection. accepts is the neutral predicate {key, values} — accept any payload when omitted, else accept when payload[key] is one of values. control mode overrides _can_drop_data / _drop_data; node2d exposes a try_drop(payload) seam. General-purpose — no doma…
| Parameter | Type | Description |
|---|---|---|
mode * | string | control→_can_drop_data / _drop_data overrides; node2d→Area2D hit region + try_drop() seam |
node * | string | Node path (in the open scene) to mark as a drop zone; "." for the root |
script_path * | string | Where to save the generated drop-zone script, e.g. res://ui/interact/DropZone.gd |
accepts | object | Neutral accept predicate (accept-any when omitted) |
confirm | boolean | Skip the confirmation prompt (auto-approve) |
notify | object | Optionally connect on_drop to a handler in the same call |
on_drop | string | User signal emitted with the payload on a valid drop (default "dropped") |
shape | string | node2d mode: DropArea collision shape (default rectangle) |
size | object | node2d mode: DropArea hit size in px (default 96×96) |