godot_execute
Run GDScript code directly inside the Godot editor to automate tasks, test logic, or manipulate the scene in real time.
Instructions
Execute GDScript code in the Godot editor (shorthand for godot_call method=execute_editor_script).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "godot_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | GDScript code to execute in the editor |