debug_evaluate
Evaluate a GDScript expression in a paused frame to inspect state at breakpoints without modifying code.
Instructions
Evaluate a GDScript expression in the context of a paused frame. Returns: the resulting value and its type. Use to check state at a breakpoint without adding print() calls and re-running.
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": "debug_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame_id | No | Frame id from debug_stack_trace | |
| expression | Yes | GDScript expression |