breakpoint-mcp

v1.95.0
breakpoint-mcp Checked 8 hours ago Published 15 days ago

MCP 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.

ParameterTypeDescription
allow_port_conflictbooleanStart 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…
scenestringOptional scene to run, e.g. res://levels/test.tscn
wait_timeout_msintegerHow 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.

ParameterTypeDescription
output_path *stringOutput file path for the exported build
preset *stringExport preset name as defined in export_presets.cfg
debugbooleanExport a debug build instead of release (default false)
timeout_msintegerMax 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.

ParameterTypeDescription
timeout_msintegerMax 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.

ParameterTypeDescription
include_csharpbooleanAlso probe OmniSharp / netcoredbg on PATH (the C# planes)
live_levelstringWhich 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_livebooleanTreat 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_msintegerPer-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.

ParameterTypeDescription
scopestringWhich 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.

ParameterTypeDescription
scopestringWhich 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).

ParameterTypeDescription
name *stringProjectSettings key

project_set_setting Set project setting

Write a ProjectSettings value. Set save=true to persist to project.godot. DESTRUCTIVE — gated by confirmation.

ParameterTypeDescription
name *stringProjectSettings key
value *New value; rich types use the {"__type__":...} tagging convention
confirmbooleanSkip the confirmation prompt (auto-approve)
savebooleanPersist to disk (default false)

scene_get_tree Get scene tree

Return the node tree of the currently edited scene (name, type, path, script, children).

ParameterTypeDescription
max_depthintegerMax recursion depth (default 64)

scene_open Open scene

Open an existing scene in the editor by res:// path.

ParameterTypeDescription
path *stringScene 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.

ParameterTypeDescription
path *stringWhere to save, e.g. res://scenes/new.tscn
root_type *stringRoot node class, e.g. Node2D, Node3D, Control
confirmbooleanSkip the confirmation prompt (auto-approve)
namestringRoot node name (defaults to the class name)
overwritebooleanReplace 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.

ParameterTypeDescription
confirmbooleanSkip the confirmation prompt (auto-approve)
pathstringScene 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.

ParameterTypeDescription
confirmbooleanSkip the confirmation prompt (auto-approve)
pathstringOptional 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.

ParameterTypeDescription
path *stringBranch root node path relative to the scene root
to_path *stringWhere to save the PackedScene, e.g. res://scenes/branch.tscn
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanReplace 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.

ParameterTypeDescription
pathstringScene 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.

ParameterTypeDescription
path *stringDestination path, e.g. res://scenes/copy.tscn
confirmbooleanSkip 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
type *stringNode class to instance, e.g. Sprite2D, AudioStreamPlayer3D
namestringNode 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.

ParameterTypeDescription
path *stringNode path relative to the scene root
confirmbooleanSkip the confirmation prompt (auto-approve)

node_rename Rename node

Rename a node (undoable).

ParameterTypeDescription
new_name *stringNew node name
path *stringNode path relative to the scene root

node_reparent Reparent node

Move a node under a new parent (undoable).

ParameterTypeDescription
new_parent_path *stringNew parent path; "." for the root
path *stringNode path relative to the scene root
keep_global_transformbooleanPreserve 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}.

ParameterTypeDescription
path *stringNode path relative to the scene root
property *stringProperty 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.

ParameterTypeDescription
path *stringNode path relative to the scene root
property *stringProperty name

node_duplicate Duplicate node

Duplicate a node and its children under the same parent (undoable). Returns the new node's path.

ParameterTypeDescription
path *stringNode path relative to the scene root
namestringName 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.

ParameterTypeDescription
path *stringNode 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.

ParameterTypeDescription
limitintegerMax matches to return (default 200)
name_containsstringOnly match nodes whose name contains this substring
root_pathstringWhere to search from; "." or omitted for the scene root
typestringOnly 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.

ParameterTypeDescription
path *stringNode 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.

ParameterTypeDescription
group *stringGroup name
path *stringNode 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.

ParameterTypeDescription
group *stringGroup name
path *stringNode path relative to the scene root
confirmbooleanSkip 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
scene_path *stringScene to instance, e.g. res://actors/enemy.tscn
namestringNode 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).

ParameterTypeDescription
path *stringNode path relative to the scene root
to_index *integerNew 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.

ParameterTypeDescription
path *stringNode path relative to the scene root
type *stringNew node class, e.g. Sprite2D, StaticBody3D
confirmbooleanSkip 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.

ParameterTypeDescription
path *stringNode path relative to the scene root
owner_pathstringAncestor 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.

ParameterTypeDescription
path *stringNode path of the instanced sub-scene, relative to the scene root
editablebooleanEnable (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.

ParameterTypeDescription
path *stringNode 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.

ParameterTypeDescription
path *stringNode 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.

ParameterTypeDescription
path *stringNode 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.

ParameterTypeDescription
path *stringNode path relative to the scene root
signalstringOnly 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.

ParameterTypeDescription
method *stringMethod to call on the target
path *stringSource node path (emitter)
signal *stringSignal name on the source
target_path *stringTarget node path (receiver)
flagsintegerObject.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.

ParameterTypeDescription
method *stringConnected method on the target
path *stringSource node path (emitter)
signal *stringSignal name on the source
target_path *stringTarget node path (receiver)
confirmbooleanSkip 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.

ParameterTypeDescription
path *stringNode path relative to the scene root
signal *stringNew signal name
argsarraySignal 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.

ParameterTypeDescription
path *stringNode path relative to the scene root
signal *stringSignal name
argsarraySignal arguments (JSON scalars or __type__-tagged Variants)
confirmbooleanSkip 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.

ParameterTypeDescription
paths *arrayNode 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.

ParameterTypeDescription
name *stringTab 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.

ParameterTypeDescription
class_name *stringEngine class name, e.g. AudioStreamPlayer3D
include_inheritedbooleanInclude 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.

ParameterTypeDescription
class_name *stringEngine class name, e.g. AudioStreamPlayer3D
include_inheritedbooleanInclude inherited members (default false)
memberstringOnly return members whose name contains this substring

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…

ParameterTypeDescription
viewportstringWhich 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.

ParameterTypeDescription
class_name *stringResource subclass to instantiate, e.g. StyleBoxFlat, Theme, GDScript
to_path *stringDestination res:// path, e.g. res://styles/panel.tres
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanReplace if it exists
propertiesobjectInitial 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.

ParameterTypeDescription
path *stringResource 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.

ParameterTypeDescription
from_path *stringSource resource res:// path
confirmbooleanSkip the confirmation prompt (auto-approve)
flagsintegerResourceSaver.SaverFlags bitmask (e.g. 32 = FLAG_COMPRESS)
overwritebooleanReplace if it exists
to_pathstringDestination 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.

ParameterTypeDescription
path *stringSource resource res:// path
to_path *stringDestination res:// path for the copy
confirmbooleanSkip the confirmation prompt (auto-approve)
deepbooleanDeep-duplicate subresources (default false)
overwritebooleanReplace 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).

ParameterTypeDescription
path *stringResource res:// path
property *stringProperty 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.

ParameterTypeDescription
path *stringResource res:// path
property *stringProperty name
value *New value (JSON scalar or __type__-tagged Variant)
confirmbooleanSkip 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).

ParameterTypeDescription
path *stringAsset 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.

ParameterTypeDescription
path *stringAsset res:// path
settings *objectImport params to set (name -> JSON scalar or __type__-tagged Variant)
confirmbooleanSkip the confirmation prompt (auto-approve)
reimportbooleanReimport 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.

ParameterTypeDescription
pathstringDirectory 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.

ParameterTypeDescription
from_path *stringSource res:// path (file or directory)
to_path *stringDestination res:// path
confirmbooleanSkip 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.

ParameterTypeDescription
path *stringDirectory 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
namestringNode 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.

ParameterTypeDescription
name *stringAnimation name (unique within its library)
player_path *stringAnimationPlayer node path relative to the scene root
librarystringAnimation 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.

ParameterTypeDescription
name *stringAnimation name
player_path *stringAnimationPlayer node path relative to the scene root
confirmbooleanSkip the confirmation prompt (auto-approve)
librarystringAnimation 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.

ParameterTypeDescription
name *stringAnimation name
path *stringTrack target: a node path, or "Node:property" for value tracks (e.g. "Sprite2D:position")
player_path *stringAnimationPlayer node path
librarystringAnimation library name (default "")
typestringTrack 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.

ParameterTypeDescription
name *stringAnimation name
player_path *stringAnimationPlayer node path
time *numberKey time in seconds
track *integerTrack index
value *Key value (JSON scalar, array, object, or a __type__-tagged Variant matching the track type)
librarystringAnimation library name (default "")
transitionnumberTransition curve exponent (default 1.0)

anim_remove_key Remove animation key

Remove a keyframe by index from a track (undoable).

ParameterTypeDescription
key *integerKey index within the track
name *stringAnimation name
player_path *stringAnimationPlayer node path
track *integerTrack index
confirmbooleanSkip the confirmation prompt (auto-approve)
librarystringAnimation library name (default "")

anim_set_length Set animation length

Set an Animation's length in seconds (undoable).

ParameterTypeDescription
length *numberNew length in seconds (> 0)
name *stringAnimation name
player_path *stringAnimationPlayer node path
librarystringAnimation library name (default "")

anim_set_loop Set animation loop mode

Set an Animation's loop mode (undoable).

ParameterTypeDescription
mode *stringLoop mode: none, linear, or pingpong
name *stringAnimation name
player_path *stringAnimationPlayer node path
librarystringAnimation library name (default "")

anim_get_track_keys Get animation track keys

List all keyframes on a track (index, time, value, transition). Read-only.

ParameterTypeDescription
name *stringAnimation name
player_path *stringAnimationPlayer node path
track *integerTrack index
librarystringAnimation 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.

ParameterTypeDescription
player_path *stringAnimationPlayer 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
activebooleanWhether the tree processes immediately (default false)
anim_player_pathstringNodePath to the AnimationPlayer this tree drives, relative to the AnimationTree node
namestringNode name (default "AnimationTree") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
root_typestringtree_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.

ParameterTypeDescription
node_name *stringUnique node name within the graph
node_type *stringAnimationNode subclass to instantiate (e.g. AnimationNodeAnimation)
tree_path *stringAnimationTree node path relative to the scene root
animationstringFor AnimationNodeAnimation: the animation name to play
positionarrayGraph 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.

ParameterTypeDescription
state_name *stringUnique state name within the state machine
tree_path *stringAnimationTree node path relative to the scene root
animationstringFor an AnimationNodeAnimation state: the animation name to play
node_typestringAnimationNode subclass for the state (default AnimationNodeAnimation)
positionarrayGraph editor position [x, y] (default [0, 0])
state_machinestringName 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.

ParameterTypeDescription
from_state *stringSource state name (or "Start")
to_state *stringDestination state name (or "End")
tree_path *stringAnimationTree node path relative to the scene root
advance_conditionstringAdvance condition parameter name (used with advance_mode auto)
advance_modestringAdvance mode (default enabled)
priorityintegerTransition priority (lower wins when multiple are valid)
state_machinestringName of a nested AnimationNodeStateMachine node within tree_root; omit to target tree_root itself
switch_modestringSwitch mode (default immediate)
xfade_timenumberCross-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).

ParameterTypeDescription
to_path *stringDestination res:// path, e.g. res://tiles/world.tres
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanReplace if it exists
tile_sizearrayBase 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.

ParameterTypeDescription
texture_path *stringTexture2D res:// path used as the atlas image
tileset_path *stringTileSet res:// .tres path
confirmbooleanSkip the confirmation prompt (auto-approve)
marginsarrayAtlas margins [x, y] in pixels
separationarrayAtlas separation [x, y] in pixels
source_idintegerExplicit source id, or -1 to auto-assign (default -1)
texture_region_sizearrayAtlas 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]).

ParameterTypeDescription
atlas_coords *arrayTile atlas coordinates [x, y] (in cells)
source_id *integerAtlas source id within the TileSet
tileset_path *stringTileSet res:// .tres path
confirmbooleanSkip the confirmation prompt (auto-approve)
sizearrayTile 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.

ParameterTypeDescription
atlas_coords *arrayTile atlas coordinates [x, y] (in cells)
polygon *arrayCollision polygon points [[x, y], ...] (>= 3), tile-local pixels
source_id *integerAtlas source id within the TileSet
tileset_path *stringTileSet res:// .tres path
confirmbooleanSkip the confirmation prompt (auto-approve)
one_waybooleanMark the polygon as one-way collision
physics_layerintegerTileSet 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
namestringNode name (default "TileMapLayer") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
tileset_pathstringTileSet 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.

ParameterTypeDescription
coords *arrayCell coordinates [x, y] (in cells)
path *stringTileMapLayer node path relative to the scene root
alternativeintegerAlternative tile id (default 0)
atlas_coordsarrayTile atlas coordinates [x, y] within the source (default [0, 0])
confirmbooleanSkip the confirmation prompt (auto-approve)
source_idintegerAtlas 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.

ParameterTypeDescription
path *stringTileMapLayer node path relative to the scene root
rect *arrayRegion [x, y, width, height] in cells (width/height > 0)
alternativeintegerAlternative tile id (default 0)
atlas_coordsarrayTile atlas coordinates [x, y] within the source (default [0, 0])
confirmbooleanSkip the confirmation prompt (auto-approve)
source_idintegerAtlas 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).

ParameterTypeDescription
coords *arrayCell coordinates [x, y] (in cells)
path *stringTileMapLayer 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.

ParameterTypeDescription
path *stringTileMapLayer node path relative to the scene root
confirmbooleanSkip 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
type *stringBody kind: static | rigid | character | area
dimstringDimension: "2d" (default) or "3d"
namestringNode 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.

ParameterTypeDescription
parent_path *stringParent node path (usually a body) relative to the scene root; "." for the root
shape *stringShape kind: rect | circle | capsule | polygon
dimstringDimension: "2d" (default) or "3d"
heightnumbercapsule height
namestringNode name (default "CollisionShape2D"/"CollisionShape3D") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
pointsarraypolygon: convex-hull points, [[x, y], …] (2D, ≥3) or [[x, y, z], …] (3D, ≥4)
radiusnumbercircle/capsule radius
sizearrayrect: [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.

ParameterTypeDescription
layer *integercollision_layer bitmask (non-negative integer)
path *stringBody/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.

ParameterTypeDescription
mask *integercollision_mask bitmask (non-negative integer)
path *stringBody/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.

ParameterTypeDescription
path *stringArea2D/3D node path relative to the scene root
monitorablebooleanWhether other areas can detect this area
monitoringbooleanWhether 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.

ParameterTypeDescription
path *stringArea2D/3D node path relative to the scene root
directionarrayGravity direction [x, y] (2D) or [x, y, z] (3D)
gravitynumberGravity magnitude (units/s^2)
pointbooleanIf true, gravity pulls toward the area's gravity point instead of a direction
space_overridestringHow 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
type *stringJoint kind; pin works in both dims, the rest are dim-specific
dimstringDimension: "2d" (default) or "3d"
namestringNode name (default the class name, e.g. "PinJoint2D") A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
node_astringNodePath (relative to the joint) of the first body
node_bstringNodePath (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.

ParameterTypeDescription
path *stringJoint2D/3D node path relative to the scene root
node_astringNodePath (relative to the joint) of the first body
node_bstringNodePath (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.

ParameterTypeDescription
parent_path *stringParent node path (usually a body) relative to the scene root; "." for the root
points *arrayPolygon outline points [[x, y], …] (≥3); a 2D outline even for 3D
build_modestring2D only: solids (default) or segments
depthnumber3D only: extrusion depth along Z (default 1.0)
dimstringDimension: "2d" (default) or "3d"
namestringNode 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.

ParameterTypeDescription
path *stringRigidBody2D/3D node path relative to the scene root
angular_dampnumberAngular damping (≥ 0)
gravity_scalenumberMultiplier on gravity (1 = normal, 0 = float)
linear_dampnumberLinear damping (≥ 0)
massnumberBody 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.

ParameterTypeDescription
path *stringStaticBody/RigidBody 2D/3D node path relative to the scene root
absorbentbooleanAbsorbent bounce combine mode (default false)
bouncenumberRestitution/bounciness 0..1 (default 0)
frictionnumberSurface friction 0..1 (default 1)
roughbooleanRough 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.

ParameterTypeDescription
confirmbooleanSkip the confirmation prompt (auto-approve)
dimstringWhich gravity to set: "2d" (default) or "3d"
directionarrayGravity direction vector [x, y] (2D) or [x, y, z] (3D)
magnitudenumberGravity magnitude (default 2D 980, 3D 9.8)
savebooleanPersist 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
amountnumberNumber of particles (> 0, default 8)
dimstringDimension: "2d" (default, GPUParticles2D) or "3d" (GPUParticles3D)
emittingbooleanWhether the system is emitting (default true)
lifetimenumberParticle lifetime in seconds (> 0, default 1)
namestringNode 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.

ParameterTypeDescription
path *stringGPUParticles2D/3D node path relative to the scene root
colorarrayBase color [r, g, b] or [r, g, b, a] (0..1)
directionarrayEmission direction [x, y, z]
gravityarrayGravity vector [x, y, z]
initial_velocity_maxnumberMaximum initial velocity
initial_velocity_minnumberMinimum initial velocity
scale_maxnumberMaximum particle scale
scale_minnumberMinimum particle scale
spreadnumberEmission 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.

ParameterTypeDescription
amount *numberNumber of particles (> 0)
path *stringGPUParticles2D/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.

ParameterTypeDescription
lifetime *numberLifetime in seconds (> 0)
path *stringGPUParticles2D/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.

ParameterTypeDescription
emitting *booleanWhether the system is emitting
path *stringGPUParticles2D/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.

ParameterTypeDescription
path *stringGPUParticles2D node path relative to the scene root
texture_path *stringres:// 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.

ParameterTypeDescription
to_path *stringDestination res:// path, e.g. res://shaders/glow.gdshader
codestringInitial GDShader source (e.g. "shader_type canvas_item; ...")
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanReplace 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.

ParameterTypeDescription
code *stringNew GDShader source
path *stringShader res:// path
confirmbooleanSkip 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.

ParameterTypeDescription
path *stringNode path relative to the scene root (a CanvasItem or GeometryInstance3D)
confirmbooleanSkip the confirmation prompt (auto-approve)
shader_pathstringres:// 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.

ParameterTypeDescription
path *stringNode path relative to the scene root
shader_path *stringres:// path to a Shader resource
confirmbooleanSkip 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.

ParameterTypeDescription
param *stringShader uniform name
path *stringNode path relative to the scene root
value *New value (JSON scalar or __type__-tagged Variant)
confirmbooleanSkip 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
autoplaybooleanWhether the player starts automatically on scene load
busstringTarget audio bus name (default "Master")
dimstringPlayer kind: "none" (default, AudioStreamPlayer), "2d" (AudioStreamPlayer2D), or "3d" (AudioStreamPlayer3D)
namestringNode name (default matches the player class) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
stream_pathstringres:// path to an AudioStream to assign to the new player
volume_dbnumberPlayer 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.

ParameterTypeDescription
path *stringAudioStreamPlayer/2D/3D node path relative to the scene root
stream_path *stringres:// 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.

ParameterTypeDescription
at_positionnumberInsert index (default -1 = append at end)
confirmbooleanSkip the confirmation prompt (auto-approve)
namestringName for the new bus
sendstringName 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.

ParameterTypeDescription
bus *stringTarget bus name
effect *stringAudioEffect subclass name, e.g. "AudioEffectReverb", "AudioEffectDelay"
at_positionnumberInsert index within the bus's effect chain (default -1 = append)
confirmbooleanSkip 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.

ParameterTypeDescription
bus *stringBus name
volume_db *numberVolume in dB
confirmbooleanSkip 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.

ParameterTypeDescription
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanReplace if it exists
to_pathstringDestination 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
type *stringControl subclass to instance, e.g. Button, Label, Panel, VBoxContainer, TextureRect
namestringNode name (defaults to the class name) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
textstringInitial 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.

ParameterTypeDescription
container_path *stringContainer node path relative to the scene root
type *stringControl subclass to instance as the container's child, e.g. Button, Label
namestringNode 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.

ParameterTypeDescription
path *stringControl node path relative to the scene root
bottomnumberanchor_bottom (0..1)
leftnumberanchor_left (0..1)
rightnumberanchor_right (0..1)
topnumberanchor_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.

ParameterTypeDescription
path *stringControl node path relative to the scene root
preset *string | numberLayoutPreset name or integer (0..15)
marginintegerMargin in pixels applied by the preset (default 0)
resize_modeintegerLayoutPresetMode 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.

ParameterTypeDescription
path *stringControl node path relative to the scene root
horizontalintegersize_flags_horizontal bitmask
stretch_rationumbersize_flags_stretch_ratio (default 1.0)
verticalintegersize_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.

ParameterTypeDescription
path *stringControl node path relative to the scene root
theme_path *stringTheme 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.

ParameterTypeDescription
to_path *stringDestination res:// path, e.g. res://ui/main.theme or res://ui/main.tres
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanReplace 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.

ParameterTypeDescription
color *array[r,g,b] or [r,g,b,a], components 0..1
name *stringTheme item name, e.g. font_color
path *stringTheme res:// path
theme_type *stringTheme type the item belongs to, e.g. Button, Label
confirmbooleanSkip 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.

ParameterTypeDescription
font_path *stringFont resource res:// path (FontFile / SystemFont / …)
name *stringTheme item name, e.g. font
path *stringTheme res:// path
theme_type *stringTheme type the item belongs to, e.g. Button, Label
confirmbooleanSkip 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.

ParameterTypeDescription
name *stringTheme item name, e.g. normal, pressed, panel
path *stringTheme res:// path
stylebox_path *stringStyleBox resource res:// path (StyleBoxFlat / StyleBoxTexture / …)
theme_type *stringTheme type the item belongs to, e.g. Button, PanelContainer
confirmbooleanSkip 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.

ParameterTypeDescription
name *stringTheme item name, e.g. h_separation, margin_left
path *stringTheme res:// path
theme_type *stringTheme type the item belongs to, e.g. HBoxContainer, MarginContainer
value *integerInteger constant value
confirmbooleanSkip 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
mesh_pathstringMesh resource res:// path to assign to the instance's 'mesh'
namestringNode 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.

ParameterTypeDescription
material_path *stringMaterial resource res:// path (StandardMaterial3D / ShaderMaterial / …)
path *stringMeshInstance3D node path relative to the scene root
surfaceintegerSurface 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'.

ParameterTypeDescription
to_path *stringDestination res:// path, e.g. res://meshes/box.tres
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanReplace if it exists
shapestringbox | 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
kindstringLight kind: dir | omni | spot (default omni)
namestringNode 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
currentbooleanMake this the current/active camera (default false)
namestringNode 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
namestringNode name (defaults to the class name) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
shapestringbox | sphere | cylinder | torus | polygon | mesh | combiner (default box)

navregion_create Create NavigationRegion3D

Add a NavigationRegion3D under a parent (undoable). By default seeds a fresh empty NavigationMesh (set with_navmesh=false to skip). Returns the new node's path and whether a navmesh was attached.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
namestringNode name (default NavigationRegion3D) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
with_navmeshbooleanSeed a fresh empty NavigationMesh resource (default true)

navagent_configure Add & configure NavigationAgent3D

Add a NavigationAgent3D under a parent (undoable) and set any of its steering/avoidance properties. Returns the new node's path and the resulting config (radius, height, max_speed, path/target desired distances, avoidance_enabled).

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
avoidance_enabledbooleanEnable RVO avoidance
heightnumberAgent height
max_speednumberMaximum movement speed
namestringNode name (default NavigationAgent3D) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
path_desired_distancenumberDistance to a path point before advancing
radiusnumberAgent radius
target_desired_distancenumberDistance to the target that counts as arrived

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.

ParameterTypeDescription
to_path *stringDestination res:// path, e.g. res://world.tres
ambient_colorarrayAmbient light color [r,g,b] or [r,g,b,a], 0..1
backgroundstringclear_color | color | sky | canvas (default clear_color)
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanReplace 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.

ParameterTypeDescription
path *stringEnvironment res:// path
confirmbooleanSkip the confirmation prompt (auto-approve)
sky_materialstringSky 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.

ParameterTypeDescription
name *stringAction name (without the input/ prefix)
confirmbooleanSkip the confirmation prompt (auto-approve)
deadzonenumberAnalog deadzone 0..1 (default 0.5)
savebooleanPersist 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.

ParameterTypeDescription
event *objectInput event descriptor
name *stringExisting action name (without the input/ prefix)
confirmbooleanSkip the confirmation prompt (auto-approve)
savebooleanPersist 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.

ParameterTypeDescription
name *stringAction name (without the input/ prefix)
confirmbooleanSkip the confirmation prompt (auto-approve)
savebooleanPersist 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.

ParameterTypeDescription
name *stringAutoload / singleton name
path *stringres:// path to a .gd script or .tscn scene
confirmbooleanSkip the confirmation prompt (auto-approve)
enabledbooleanEnable as a global singleton (default true)
savebooleanPersist 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.

ParameterTypeDescription
name *stringAutoload / singleton name
confirmbooleanSkip the confirmation prompt (auto-approve)
savebooleanPersist 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.

ParameterTypeDescription
name *stringPreset display name
platform *stringExport platform name as shown in the editor
confirmbooleanSkip the confirmation prompt (auto-approve)
export_pathstringDefault export output path
runnablebooleanMark 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.

ParameterTypeDescription
path *stringres:// path to the scene to run first
confirmbooleanSkip the confirmation prompt (auto-approve)
savebooleanPersist 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.

ParameterTypeDescription
prefixstringOnly 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.

ParameterTypeDescription
name *stringEditorSettings key, e.g. interface/editor/code_font_size
confirmbooleanAuto-approve the write (skip the confirmation prompt)
valueIf 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.

ParameterTypeDescription
dirstringDirectory 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringScript path (res://..., absolute, or project-relative)
max_resultsintegerMaximum 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringScript path (res://..., absolute, or project-relative)

gd_definition GDScript go-to-definition

Resolve the definition location(s) of the symbol at a position.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringScript path (res://..., absolute, or project-relative)

gd_references GDScript find-references

Find all references to the symbol at a position.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringScript path (res://..., absolute, or project-relative)
include_declarationbooleanInclude 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
new_name *stringNew symbol name
path *stringScript path (res://..., absolute, or project-relative)
applybooleanWrite edits to disk (default false = dry run)
confirmbooleanAuto-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.

ParameterTypeDescription
path *stringScript 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.

ParameterTypeDescription
query *stringSymbol 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.

ParameterTypeDescription
path *stringScript path
wait_msintegerMax 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringScript 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).

ParameterTypeDescription
path *stringScript path (res://..., absolute, or project-relative)
start_character *integer0-based start character
start_line *integer0-based start line
end_characterinteger0-based end character (default = start_character)
end_lineinteger0-based end line (default = start_line)
onlyarrayRestrict 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringScript 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringScript 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringScript 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringScript 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.

ParameterTypeDescription
path *stringScript 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.

ParameterTypeDescription
path *stringScript path (res://..., absolute, or project-relative)
insert_spacesbooleanIndent with spaces instead of tabs (default false — Godot uses tabs)
tab_sizeintegerIndent 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).

ParameterTypeDescription
path *stringScript 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringScript path (res://..., absolute, or project-relative)
directionstringincoming = 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.

ParameterTypeDescription
path *stringScript 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringC# script path (res://..., absolute, or relative to the C# project root)
max_resultsintegerMaximum 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).

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringC# 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringC# 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringC# script path (res://..., absolute, or relative to the C# project root)
include_declarationbooleanInclude 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.

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
new_name *stringNew symbol name — a valid C# identifier, optionally @-prefixed
path *stringC# script path (res://..., absolute, or relative to the C# project root)
applybooleanWrite edits to disk (default false = dry run)
confirmbooleanAuto-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.

ParameterTypeDescription
path *stringC# 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.

ParameterTypeDescription
query *stringSymbol 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).

ParameterTypeDescription
character *integer0-based character
line *integer0-based line
path *stringC# 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.

ParameterTypeDescription
path *stringC# script path
wait_msintegerMax 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).

ParameterTypeDescription
path *stringC# script path (res://..., absolute, or relative to the C# project root)
start_character *integer0-based start character
start_line *integer0-based start line
end_characterinteger0-based end character (default = start_character)
end_lineinteger0-based end line (default = start_line)
onlyarrayRestrict 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…

ParameterTypeDescription
allow_port_conflictbooleanLaunch 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…
scenestring'main' (default), 'current', res://scene.tscn, or uid://… — must be inside the project
stop_on_entrybooleanBreak 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.

ParameterTypeDescription
addressstringAddress of the running game (default 127.0.0.1)
portintegerRemote 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…

ParameterTypeDescription
lines *array1-based line numbers
path *stringScript path (res://..., absolute, or project-relative)
conditionsarrayOptional 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_conditionsarrayOptional 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_messagesarrayOptional 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`).

ParameterTypeDescription
kind *stringStep 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.

ParameterTypeDescription
levelsintegerMax 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.

ParameterTypeDescription
frame_id *integerFrame 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.

ParameterTypeDescription
variables_ref *integervariablesReference 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.

ParameterTypeDescription
addarrayExpressions to add to the watch set
clearbooleanClear all watches before applying add (default false)
frame_idintegerFrame id from dbg_stack_trace; omit for the top frame
removearrayExpressions 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…

ParameterTypeDescription
filtersarrayException 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.

ParameterTypeDescription
name *stringVariable name within that container
value *stringNew value as a GDScript literal/expression
variables_ref *integervariablesReference of the containing scope/variable (from dbg_scopes or dbg_variables)
confirmbooleanAuto-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.

ParameterTypeDescription
scenestringOverride the scene for a launched session: 'main', 'current', res://scene.tscn, or uid://…
stop_on_entrybooleanOverride 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…

ParameterTypeDescription
line *integer1-based target line
path *stringScript path (res://..., absolute, or project-relative)
confirmbooleanAuto-approve the jump (skip the confirmation prompt)
target_idintegerA 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…

ParameterTypeDescription
watcharrayVariables 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…

ParameterTypeDescription
allow_port_conflictbooleanLaunch 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…
argsarrayProgram arguments (default: ['--path', <C# project>])
just_my_codebooleanRestrict stepping/breakpoints to user code (netcoredbg justMyCode; default true)
programstringPath to the program to launch (default: the Mono/.NET Godot binary)
stop_on_entrybooleanBreak 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.

ParameterTypeDescription
process_id *integerOS 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…

ParameterTypeDescription
lines *array1-based line numbers
path *stringC# script path (res://..., absolute, or relative to the C# project root)
conditionsarrayOptional 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.

ParameterTypeDescription
kind *stringStep kind

cs_dbg_stack_trace Stack trace (C#)

Return the current C# call stack (only meaningful while stopped at a breakpoint).

ParameterTypeDescription
levelsintegerMax frames (default 20)

cs_dbg_scopes Scopes (C#)

Return the variable scopes (Locals, etc.) for a C# stack frame.

ParameterTypeDescription
frame_id *integerFrame id from cs_dbg_stack_trace

cs_dbg_variables Variables (C#)

List variables under a scope or a complex value (via its variables_ref).

ParameterTypeDescription
variables_ref *integervariablesReference 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.

ParameterTypeDescription
name *stringVariable name within that container
value *stringNew value as a C# literal/expression
variables_ref *integervariablesReference of the containing scope/variable (from cs_dbg_scopes or cs_dbg_variables)
confirmbooleanAuto-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.

ParameterTypeDescription
addarrayExpressions to add to the watch set
clearbooleanClear all watches before applying add (default false)
frame_idintegerFrame id from cs_dbg_stack_trace; omit for the top frame
removearrayExpressions 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…

ParameterTypeDescription
filtersarrayException 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.

ParameterTypeDescription
argsarrayOverride the program arguments (launched sessions)
programstringOverride the launched program (launched sessions)
stop_on_entrybooleanOverride 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).

ParameterTypeDescription
max_depthintegerMax recursion depth (default 64)
peerstringHeadless 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).

ParameterTypeDescription
path *string
property *string
peerstringHeadless 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.

ParameterTypeDescription
path *string
property *string
value *
confirmbooleanSkip the confirmation prompt (auto-approve)
peerstringHeadless 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.

ParameterTypeDescription
path *string
signal *string
argsarray
confirmbooleanSkip the confirmation prompt (auto-approve)
peerstringHeadless 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}.

ParameterTypeDescription
event *object
confirmbooleanSkip the confirmation prompt (auto-approve)
peerstringHeadless 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.

ParameterTypeDescription
keysarray
peerstringHeadless 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.

ParameterTypeDescription
argsarrayReader arguments (tagged-Variant convention)
namestringRegistered reader to call; omit to list the names
peerstringHeadless 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.

ParameterTypeDescription
peerstringHeadless 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.

ParameterTypeDescription
path *stringres:// path of the .png to create; refused if it exists
peerstringHeadless 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).

ParameterTypeDescription
busstringAudio bus to capture (default Master)
compare_tostringAn earlier WAV to compare this capture against
peerstringHeadless peer id from runtime_spawn_peers; omit for the default running game.
secondsnumberSeconds 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.

ParameterTypeDescription
levelsarrayFilter to these levels, e.g. ["error","warning"]
peerstringHeadless peer id from runtime_spawn_peers; omit for the default running game.
since_seqintegerReturn 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.

ParameterTypeDescription
expect *objectMap of property name -> expected value (JSON; use the tagged-Variant form for complex types like Vector2/Color)
path *stringNode path (relative to the current scene; '/root/...' absolute allowed)
peerstringHeadless peer id from runtime_spawn_peers; omit for the default running game.
tolerancenumberAbsolute 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.

ParameterTypeDescription
expect *arrayList of node expectations: {path, type?, absent?}.
peerstringHeadless 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.

ParameterTypeDescription
baseline *objectMonitor key -> baseline value (capture earlier via runtime_get_monitors)
directionobjectPer-key override of the pass direction (defaults: time/fps higher_better, else lower_better)
peerstringHeadless peer id from runtime_spawn_peers; omit for the default running game.
tolerancenumberFractional 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.

ParameterTypeDescription
text *stringText (or regular expression) to look for
case_sensitivebooleanCase-sensitive match (default false)
min_countintegerRequire at least this many matches (implies present)
peerstringHeadless peer id from runtime_spawn_peers; omit for the default running game.
presentbooleanAssert the text IS present (default true); set false to assert it is absent
regexbooleanTreat `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.

ParameterTypeDescription
reference *stringres:// or user:// path to the reference PNG
peerstringHeadless peer id from runtime_spawn_peers; omit for the default running game.
per_channel_thresholdintegerPer-channel delta (0-255) for a pixel to count as different (default 0)
regionobjectOptional sub-region (applied to both frame and reference) to compare
tolerancenumberMax 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.

ParameterTypeDescription
path *stringNode path (relative to the current scene; '/root/...' absolute allowed)
property *stringProperty to read on each poll
value *Value to compare the property against (tagged-Variant form for complex types)
opstringComparison operator (default eq)
peerstringHeadless peer id from runtime_spawn_peers; omit for the default running game.
poll_interval_msintegerDelay between polls, in ms (default 100)
timeout_msintegerMaximum 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.

ParameterTypeDescription
path *stringPath to an AnimationPlayer node in the running scene
animationstringAnimation name to play (default: the current/assigned animation)
confirmbooleanSkip the confirmation prompt (auto-approve)
custom_speednumberPlayback speed multiplier (default 1.0; negative not supported here)
from_endbooleanStart playback from the end (default false)
peerstringHeadless 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.

ParameterTypeDescription
path *stringPath to an AnimationPlayer node in the running scene
confirmbooleanSkip the confirmation prompt (auto-approve)
keep_statebooleanPause in place instead of stopping (default false)
peerstringHeadless 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.

ParameterTypeDescription
path *stringPath to an AnimationPlayer node in the running scene
peerstringHeadless 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.

ParameterTypeDescription
parent *stringPath to the parent node in the running scene
confirmbooleanSkip the confirmation prompt (auto-approve)
namestringOptional name for the new node A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
peerstringHeadless peer id from runtime_spawn_peers; omit for the default running game.
scenestringres:// path to a PackedScene to instantiate — mutually exclusive with `type`
typestringClass 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.

ParameterTypeDescription
path *stringPath to the node to remove in the running scene
confirmbooleanSkip the confirmation prompt (auto-approve)
peerstringHeadless 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.

ParameterTypeDescription
scale *number0 = freeze, 1 = normal, N = slow/fast (negative is clamped to 0)
confirmbooleanSkip the confirmation prompt (auto-approve)
peerstringHeadless 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.

ParameterTypeDescription
frames *integerNumber of frames to advance
confirmbooleanSkip the confirmation prompt (auto-approve)
kindstringWhich loop to tick each step (default idle)
peerstringHeadless 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.

ParameterTypeDescription
root *stringRoot node path in the running scene
fieldsarrayProperty names to capture per node (default: position/global_position/rotation/scale/visible/modulate when present)
max_depthintegerMax recursion depth (default 8)
peerstringHeadless 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…

ParameterTypeDescription
seed *integerSeed value for the global RNG
confirmbooleanSkip the confirmation prompt (auto-approve)
peerstringHeadless 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.

ParameterTypeDescription
allbooleanStop every peer this server spawned (default false)
confirmbooleanSkip the confirmation prompt (auto-approve)
idstringPeer 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…

ParameterTypeDescription
root *stringRoot node path to digest in each peer (same path on every peer)
fieldsarrayProperty names to capture per node (default: the runtime_state_digest defaults)
max_depthintegerMax recursion depth (default 8)
peersarrayPeer 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.

ParameterTypeDescription
id *stringProcess id from godot_run_managed
since_seqintegerOnly lines with seq greater than this (default 0)
streamstringFilter by stream (default both)

godot_stop Stop managed process

Terminate a game started by godot_run_managed or godot_run_project.

ParameterTypeDescription
id *stringId from godot_run_project or godot_run_managed
confirmbooleanSkip the confirmation prompt (auto-approve)

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.

ParameterTypeDescription
name *stringSymbol name to look for
exactbooleanRequire an exact name match (default false = substring)
kindsarrayRestrict to these declaration kinds (default: all)
max_resultsintegerCap 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.

ParameterTypeDescription
name *stringIdentifier to find (matched on word boundaries)
extensionsarrayFile extensions to include, without the dot (default: gd,cs,tscn,tres,gdshader)
ignore_casebooleanCase-insensitive match (default false)
max_resultsintegerCap 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.

ParameterTypeDescription
limitintegerMax snippets to return (default 5)
querystringTopic 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.

ParameterTypeDescription
compare_tostringAn earlier WAV to compare this recording against
fpsintegerFixed frame rate (default 60)
keep_framesbooleanKeep PNG frames; WAV then 32-bit (default false)
scenestringScene to record, e.g. res://levels/boss.tscn (default: the main scene)
secondsnumberLength of game time to record (default 5)
user_argsarrayArguments 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.

ParameterTypeDescription
path *stringWAV file, e.g. a sound.wav that godot_record wrote
compare_tostringA 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.

ParameterTypeDescription
max_countintegerMax commits to return (default 20)
pathstringOnly 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.

ParameterTypeDescription
pathstringRestrict the diff to this path (res:// or project-relative)
stagedbooleanDiff 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.

ParameterTypeDescription
pathstringIf set, return this file's content at <ref> instead of the commit
refstringRevision 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.

ParameterTypeDescription
remotesbooleanInclude 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.

ParameterTypeDescription
path *stringFile to blame (res:// or project-relative)
endintegerLast line (1-based, inclusive). May be given without `start`.
startintegerFirst 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.

ParameterTypeDescription
pathsarrayPaths 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.

ParameterTypeDescription
message *stringCommit 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).

ParameterTypeDescription
paths *arrayPaths to discard changes for (res:// or project-relative)
confirmbooleanSkip 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…

ParameterTypeDescription
op *stringStash operation
confirmbooleanSkip the confirmation prompt (op='push' / op='drop')
messagestringMessage for op='push'
refstringStash 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.

ParameterTypeDescription
name *stringNew branch name
fromstringStart point (branch, tag, or sha; default HEAD)
switchbooleanSwitch 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.

ParameterTypeDescription
branch *stringExisting 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.

ParameterTypeDescription
kind *stringAsset kind: sprite | texture | icon | audio_sfx | model
to_path *stringDestination res:// path; the correct extension is appended if omitted
confirmbooleanSkip the confirmation prompt (auto-approve)
duration_msintegerLength in ms for audio_sfx (default 300)
heightintegerImage height for sprite/texture/icon (default per-kind)
overwritebooleanReplace if it exists
promptstringSeed text — deterministically colours/tunes/sizes the placeholder
shapestringPrimitive for model (default box)
widthintegerImage 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
namestringNode name (default MultiplayerSpawner) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
spawn_pathstringNodePath (relative to the spawner) whose children are auto-replicated
spawnable_scenesarrayres:// 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.

ParameterTypeDescription
parent_path *stringParent node path relative to the scene root; "." for the root
namestringNode name (default MultiplayerSynchronizer) A taken name gets a number appended (`SFX`->`SFX2`), reported as `coerced` + `requested`.
propertiesarrayProperty NodePaths to replicate, e.g. [".:position", ".:rotation"]
replication_modestringReplication mode for the properties (default always)
root_pathstringNodePath 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.

ParameterTypeDescription
path *stringNode path relative to the scene root
peer_id *integerPeer id to grant authority (1 = server)
recursivebooleanAlso 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.

ParameterTypeDescription
to_path *stringDestination res:// .gd path, e.g. res://net/enet_peer.gd
class_namestringOptional class_name for the generated script
confirmbooleanSkip the confirmation prompt (auto-approve)
max_clientsintegerServer max clients (default 32)
overwritebooleanOverwrite if the file already exists (default false)
portintegerDefault 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.

ParameterTypeDescription
to_path *stringDestination res:// .gd path, e.g. res://net/webrtc_peer.gd
class_namestringOptional class_name for the generated script
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanOverwrite 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.

ParameterTypeDescription
function *stringFunction name to annotate (a stub is created if absent)
path *stringres:// .gd script to modify
call_localbooleanAlso invoke locally on the caller (default false → call_remote)
channelintegerTransfer channel (default 0)
confirmbooleanSkip the confirmation prompt (auto-approve)
modestringWho may call it: 'authority' (default) or 'any_peer'
transfer_modestringTransfer 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.

ParameterTypeDescription
to_path *stringDestination res:// .gd path, e.g. res://net/lobby.gd
class_namestringOptional class_name for the generated script
confirmbooleanSkip the confirmation prompt (auto-approve)
max_playersintegerServer max players (default 8)
overwritebooleanOverwrite if the file already exists (default false)
portintegerDefault 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.

ParameterTypeDescription
sdkstringFocus 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.

ParameterTypeDescription
sdk *stringWhich backend SDK to configure
api_keystringSilentWolf API key baked into the script
app_idstringPhoton app id
confirmbooleanSkip the confirmation prompt (auto-approve)
game_idstringSilentWolf game id
hoststringNakama host (default 127.0.0.1)
overwritebooleanOverwrite if the file already exists (default false)
portintegerNakama port (default 7350)
regionstringPhoton region (default us)
server_keystringNakama server key (default defaultkey)
title_idstringPlayFab title id
to_pathstringDestination 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.

ParameterTypeDescription
sdk *stringWhich backend SDK to target
confirmbooleanSkip the confirmation prompt (auto-approve)
leaderboard_namestringLeaderboard id / statistic name baked into the script (default 'main')
overwritebooleanOverwrite if the file already exists (default false)
to_pathstringDestination 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.

ParameterTypeDescription
sdk *stringWhich backend SDK to target
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanOverwrite if the file already exists (default false)
to_pathstringDestination 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.

ParameterTypeDescription
sdk *stringWhich backend SDK to target
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanOverwrite if the file already exists (default false)
to_pathstringDestination 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.

ParameterTypeDescription
path *stringWhere to save the template scene, e.g. res://ui/cards/Card.tscn
size *objectCard dimensions in px
slots *arrayNamed regions the card exposes
backobjectOptional card-back state; its presence makes the template two-sided
confirmbooleanSkip the confirmation prompt (auto-approve)
facearraySlot names shown on the face; omitted → all slots
overwritebooleanReplace 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_typestringRoot node type (default PanelContainer)
script_pathstringGenerated card script path (default derives from `path`)
themeobjectInline theme built via theme_create + theme_set_*
theme_pathstringUse 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.

ParameterTypeDescription
data *objectSlot name → value; a texture slot takes a res:// path
parent *stringNode path to parent the instance under (in the open scene); "." for the root
template_path *stringCard template scene, e.g. res://ui/cards/Card.tscn
face_upbooleanShow the face (default true); false shows the back on two-sided cards
namestringOptional node name for the instance
persistbooleanBake the bound slot data into the saved scene by enabling Editable Children on the instance (default false = runtime-bound only, reverts on reload)
positionobjectLocal 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.

ParameterTypeDescription
cards *arrayOne entry per card to instance
mode *stringArrangement mode
parent *stringContainer node path the cards are instanced under; "." for the root
template_path *stringCard template scene, e.g. res://ui/cards/Card.tscn
alignstringAlignment along the layout (default center)
columnsintegerGrid mode column count
fan_anglenumberTotal fan spread in degrees (fan mode)
originobjectTop-left origin offset in px
overlapnumberpx overlap (row / fan / stack)
persistbooleanBake 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)
spacingnumberpx 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).

ParameterTypeDescription
column_map *objectSlot name → column expression (a bare {column} or a composed "{a} · {b}")
parent *stringContainer node path the cards are instanced under; "." for the root
table_path *stringCSV or JSON table on disk (res:// or absolute); format auto-detected by extension unless `format` set
template_path *stringCard template scene, e.g. res://ui/cards/Card.tscn
art_columnstringColumn holding a res:// texture path bound to the `art` slot
face_upbooleanShow the face (default true)
filterobjectOptional row selector, e.g. {column:'set', equals:'base'}
formatstringOverride the table format
layoutobjectOptional arrangement (same knobs as card_hand_layout); omitted → stacked at origin
limitintegerCap the number of rows stamped
persistbooleanBake 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…

ParameterTypeDescription
face_up *booleanTarget face state: true shows the face, false the back
node *stringNode path of the card instance to flip (in the open scene); "." for the root
animateobjectOptional flip animation; omitted → an instant set_face
methodstringSetter 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.

ParameterTypeDescription
layout *ring{cells[]} | grid{rows,cols} | cells{cells[{id,x,y}]}
path *stringWhere to save the board scene, e.g. res://ui/board/Board.tscn
backgroundobjectOptional background drawn behind the cells
cell_kindstringmarker→Marker2D anchor (default), control→Control anchor
cell_sizenumberCell pitch in px (drives ring radius / grid spacing; default 96)
confirmbooleanSkip the confirmation prompt (auto-approve)
overwritebooleanReplace 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_typestringBoard 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.

ParameterTypeDescription
board *stringBoard root node path in the open scene ("." if the board is the scene root)
cell *stringCell id to place onto (resolves to <board>/cell_<cell>)
node *stringNode path of the node to place (a card / piece already in the scene)
alignobjectOffset 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…

ParameterTypeDescription
cols *integerGrid column count (cell x ranges 0..cols-1)
path *stringWhere to save the board scene, e.g. res://ui/board/TileBoard.tscn
rows *integerGrid row count (cell y ranges 0..rows-1)
confirmbooleanSkip the confirmation prompt (auto-approve)
layer_namestringTileMapLayer node name (default "Cells")
overwritebooleanReplace 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…
paintobjectFill the whole grid with one tile (needs an existing `tileset` that has the source); omitted → cells stay empty (a coordinate frame only)
tile_sizearrayTile cell size [w, h] in px (default [64, 64]); the coordinate frame board_tile_place snaps to
tilesetstringExisting 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.

ParameterTypeDescription
coord *arrayTile coordinate [x, y] (in cells)
layer *stringTileMapLayer node path in the open scene
node *stringNode path of the node to place (a card / piece already in the scene)
alignobjectOffset from the anchor in px (default 0,0)
anchorstringSnap to the cell centre (default) or its top-left corner
reparentbooleanReparent the node under the layer so the coordinate is layer-local (default true)
tile_sizearrayThe 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.

ParameterTypeDescription
path *stringWhere to save the template scene, e.g. res://ui/pieces/Piece.tscn
size *objectToken size in px (drives the hit-area extents and, for a Control root, the Art size)
artstringres:// texture bound to the Art node at build time
backobjectOptional back state; its presence makes the piece two-sided
colorstringDefault Art tint (self_modulate), #RRGGBB or #RRGGBBAA
confirmbooleanSkip the confirmation prompt (auto-approve)
hit_areaobjectOptional Area2D + CollisionShape2D for hit-testing
labelbooleanInclude a Label child for the piece name (default true)
label_textstringStatic Label text shown before any data is bound
overwritebooleanReplace 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_typestringRoot node type (default Node2D → Sprite2D art; Control → TextureRect art)
script_pathstringGenerated 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.

ParameterTypeDescription
data *objectSlot name → value (art takes a res:// path; color a #RRGGBB; label a string)
parent *stringNode path to parent the instance under (in the open scene); "." for the root
template_path *stringPiece template scene, e.g. res://ui/pieces/Piece.tscn
face_upbooleanShow the face (default true); false shows the back on two-sided pieces
namestringOptional node name for the instance
persistbooleanBake the bound data into the saved scene by enabling Editable Children on the instance (default false = runtime-bound only, reverts on reload)
place_onobjectOptionally place the new piece on a board cell in the same call
positionobjectLocal 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.

ParameterTypeDescription
board *stringBoard root node path in the open scene ("." if the board is the scene root)
node *stringNode path of the piece to move
to *stringDestination cell id (resolves to <board>/cell_<to>)
alignobjectOffset from the cell origin in px (default 0,0 — centred on the anchor)
animateobjectOptional pop animation; omitted → an instant snap
fromstringSource 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…

ParameterTypeDescription
mode *stringcontrol→Control _get_drag_data DnD; node2d→Area2D hit region + pointer handler
node *stringNode path (in the open scene) to make draggable; "." for the root
script_path *stringWhere to save the generated drag script, e.g. res://ui/interact/Draggable.gd
actionstringnode2d mode: input action name registered for the drag button (default "drag")
buttonintegernode2d mode: mouse button index that begins the drag (default 1 = left)
confirmbooleanSkip the confirmation prompt (auto-approve)
hit_areastringnode2d mode: sub-path to the Area2D whose input_event drives the drag (default the node itself)
payloadobjectNeutral data the drag carries (bound into the script as a Dictionary); default empty
previewbooleancontrol 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…

ParameterTypeDescription
mode *stringcontrol→_can_drop_data / _drop_data overrides; node2d→Area2D hit region + try_drop() seam
node *stringNode path (in the open scene) to mark as a drop zone; "." for the root
script_path *stringWhere to save the generated drop-zone script, e.g. res://ui/interact/DropZone.gd
acceptsobjectNeutral accept predicate (accept-any when omitted)
confirmbooleanSkip the confirmation prompt (auto-approve)
notifyobjectOptionally connect on_drop to a handler in the same call
on_dropstringUser signal emitted with the payload on a valid drop (default "dropped")
shapestringnode2d mode: DropArea collision shape (default rectangle)
sizeobjectnode2d mode: DropArea hit size in px (default 96×96)