get_stack_trace
Retrieve the call stack and stop reason for a paused debug session to see why execution halted. Filters internal frames by default; optionally include them or inspect a specific thread.
Instructions
Get stack trace. The response includes stopReason — why the session is paused. For an implicit frameless stopped thread, a sibling with policy-recognized user frames is preferred and adopted, with the switch disclosed in note. Internal/runtime frames are filtered by default; when any are hidden the response carries hiddenFrames and a note. When the frame the program is paused in is itself internal, pausedFrame names it (kept: whether it was retained as stackFrames[0]) and the note says so
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | No | Inspect this exact thread (ids from list_threads). Explicit selection is authoritative and is never silently switched | |
| sessionId | Yes | ||
| includeInternals | No | Include internal/framework frames (e.g., Node.js internals, node_modules dependencies, async separators). Default: false for cleaner output. |