run_editor_script
Executes arbitrary GDScript code within the Godot editor context to automate editor tasks and run EditorScript logic.
Instructions
Execute arbitrary GDScript code 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": "run_editor_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | GDScript code to execute |