execute_editor_script
Run custom GDScript code directly inside the Godot editor to automate editor tasks, modify scenes, or test game logic without running the project.
Instructions
Execute a GDScript snippet in the editor context (EditorScript)
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": "execute_editor_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | GDScript code to execute |