get_locals
Retrieve the call stack with local variable names and values for each frame. Shows program state at breakpoints or crashes.
Instructions
Get the call stack with all local variables for each frame.
The target must be halted. Shows local variable names and values for every function in the call stack. Useful for understanding program state at the point of a breakpoint or crash.
Returns: Call stack with local variables expanded per frame
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_locals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |