get_variables
Retrieve variables in the current debug scope, optionally filtered by scope type or stack frame.
Instructions
Get variables in the current scope
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": {
"sessionId": "<sessionId>"
},
"name": "get_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Optional scope filter | |
| frameId | No | Optional stack frame ID (defaults to top frame) | |
| sessionId | Yes | Debug session ID |