debug_get_scopes
Retrieve variable scopes (locals, globals) for a stack frame in a debug session. Use session and frame IDs to inspect scope contents.
Instructions
Get variable scopes for a stack frame (locals, globals, etc.).
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": {
"session_id": "<session_id>",
"frame_id": "<frame_id>"
},
"name": "debug_get_scopes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame_id | Yes | Stack frame ID | |
| session_id | Yes | Debug session ID |