Start Flow Debug Run
debug_flow_startStarts a ServiceNow Workflow Studio debug run and pauses before the first step, returning the run context ID, stoppable steps, and current location so you can step through or cancel it.
Instructions
Start a Workflow Studio debug run (Test > Debug) of a flow or subflow and leave it paused before its first step. The flow's current draft runs, for real: records it creates or changes are kept, so debug a copy (copy_flow) in a scratch app. Returns the run's root context id, the steps it can stop at, and where it is. Continue with debug_flow_step, and always end it: run it to the end, or debug_flow_cancel. debug_flow_run_to does all of this in one call. 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). | |
| 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 | No | Steps to break at, by the number Workflow Studio shows. | |
| timeout_seconds | No | Seconds to wait for the run to pause again or end. Default 45, under the 60-second request timeout many MCP clients use. A client that gives up first leaves the run open: find it with list_flow_debug_sessions. |