debug_get_variables
Retrieve variables for a debug session scope or expandable variable, with optional filtering by named or indexed properties.
Instructions
Get variables for a scope or expandable variable.
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>",
"variables_reference": "<variables_reference>"
},
"name": "debug_get_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Filter: 'indexed' or 'named' | |
| session_id | Yes | Debug session ID | |
| variables_reference | Yes | Variables reference from scope or variable |