Debugger: Get Call Stack
debugger_get_callstackRetrieve call-stack frames (function, file, line) for the halted thread to inspect the current execution state. Optionally specify a thread index.
Instructions
Return the call-stack frames (function, file, line — top frame first) for the halted thread. Requires the target to be HALTED. Optional threadIndex (default the stopped/primary thread). A frame index from here feeds stackFrameIndex in debugger_get_variables / debugger_evaluate.
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": "debugger_get_callstack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Optional. Roku IP or serial; must match a connected Dev Studio tab. Omit to use the focused tab. | |
| threadIndex | No | Optional thread index (default the stopped/primary thread). |