list_variables
Shows variables in the current stack frame. Select scope: locals, function arguments, or both to inspect debugging state.
Instructions
Show variables in the current stack frame (GDB 'info locals' / 'info args').
scope: "locals" — local variables only (default) "args" — function arguments only "all" — both locals and arguments
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>"
},
"name": "list_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | locals | |
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |