debug_step
Step the debuggee in, over, or out of a function. Optionally wait for the stop to return a snapshot of locals, output, and stack.
Instructions
Single-step the debuggee. Kind: "in" (step into), "over" (step over), "out" (step out). Pass waitTimeoutSeconds > 0 to also block on the next stop and return the same one-shot snapshot as breakpoint_wait (top frame, snippet, top-frame locals, recent debuggee output). Without it the call returns immediately after issuing the step — today's behavior.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Step kind: "in", "over", or "out". | |
| threadId | No | Thread id to step. If omitted, uses the last thread that stopped. | |
| maxLocalsPerScope | No | Cap on locals returned per scope on the top frame after the post-step stop. Default 30. Pass 0 to omit locals. Only used when waitTimeoutSeconds > 0. | |
| waitTimeoutSeconds | No | Seconds to wait for the resulting stop. 0 (default) returns immediately after issuing the step. > 0 blocks and returns the full enriched stop snapshot. | |
| maxRecentOutputLines | No | Cap on recent debuggee output lines included with the post-step stop (peeked, not drained). Default 50. Pass 0 to omit output. Only used when waitTimeoutSeconds > 0. |