Debug Flow To Breakpoint
debug_flow_run_toRun a flow or subflow to its first breakpoint in one call, reporting each step's inputs and outputs at the stop, then canceling by default so no run is left open.
Instructions
Debug a flow or subflow to a breakpoint in one call: start it, run to the first of the breakpoints, report every step's inputs and outputs there, then (by default) cancel it so nothing is left open. after resume lets it run on to the end, ignoring the other breakpoints; after stay leaves it paused for debug_flow_step. The run is real: records it creates or changes are kept. Only when the user asked to debug.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | Yes | The flow or subflow: its sys_hub_flow sys_id, or scope.internal_name (e.g. x_app.create_task_copy). | |
| full | No | Show values in full, and the engine's internal outputs (__action_status__ and the like). | |
| after | No | After the breakpoint: cancel (default), resume to the end, or stay paused. | |
| inputs | No | Inputs by name. For a subflow, its declared inputs (checked before anything runs; an array for an array input is sent as Workflow Studio sends it). For a flow, its trigger outputs (e.g. current, table_name). | |
| instance | No | The ServiceNow instance auth alias to connect to. This is the alias configured via `snc configure` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| breakpoints | Yes | Steps to break at, by the number Workflow Studio shows. The run stops at the first one reached. | |
| timeout_seconds | No | Seconds for the whole call, split across its waits (start, the breakpoint, and with resume the end). Default 30, so a cancel's settling still fits under a 60-second client timeout. A client that gives up first leaves the run open: find it with list_flow_debug_sessions. |