gdb_list_variables
Retrieve and display local variables in a specified stack frame to inspect program state during C++ debugging.
Instructions
List local variables in a stack frame.
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": "gdb_list_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session identifier. | |
| frame | No | Stack frame number (0 = current frame). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |