editor_run_gdscript
Execute GDScript code inside the Godot editor to automate tasks, modify scenes, or test functionality without running the game. Enables programmatic control of the editor.
Instructions
Execute arbitrary GDScript code in editor context.
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": "editor_run_gdscript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | GDScript code to execute in editor context |