editor_evaluate_expression
Evaluate GDScript expressions directly in the Godot editor or debugger context to test logic and inspect values without running the project.
Instructions
Evaluate a GDScript expression in debugger/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": {
"expression": "<expression>"
},
"name": "editor_evaluate_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | GDScript expression to evaluate |