pause_execution
Pauses a running program to inspect its state; if it cannot stop immediately, returns pending status so you can wait for the next stop.
Instructions
Pause a running program. Waits briefly for the stop; if the program cannot stop within ~5s (e.g. blocked in native code, or an idle server waiting for input), returns success with pending:true and the session reports "paused" the next time the program runs code (call wait_for_stop to block until then). An observed stop answers with stopReason, the first visible frame as location (with its source context), and note when the stop was reported on a thread with no program frame — a sibling thread in program code is shown instead, or, when none has one, the note says no program frame is active. Fails with an actionable error if the session has no debuggable target to pause (e.g. a js attach whose target session was never adopted or has ended)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | No | Thread ID to pause. If omitted or 0, pauses all threads. | |
| sessionId | Yes |