debug_stack_trace
Retrieve the call stack where execution is paused, showing function name, file, and line number, along with the reason execution stopped.
Instructions
Get the call stack where execution is currently paused. Returns: frames with function name, file and ZERO-BASED line, plus why it stopped. An empty frame list means execution is not paused - frames exist only while stopped at a breakpoint or a runtime error.
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": "debug_stack_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | No | Thread id (default 1) |