debug_inspect
Inspect stack frame variables to debug your GDScript code. Get locals, members, and globals with values and types during paused execution.
Instructions
Inspect variables visible in a stack frame. Returns: each scope (locals, members, globals) with its variables, values and types. Use the frame_id from debug_stack_trace. Only meaningful while execution is paused.
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": {
"frame_id": "<frame_id>"
},
"name": "debug_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame_id | Yes | Frame id from debug_stack_trace |