debug_get_stack_trace
Retrieve the call stack for a thread in an active debug session to see the execution path and pinpoint where the program stopped.
Instructions
Get the call stack for a thread.
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": "debug_get_stack_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| levels | No | Number of frames to retrieve | |
| thread_id | No | Thread ID | |
| session_id | Yes | Debug session ID |