Cancel Flow Debug Run
debug_flow_cancelEnds a debug run and any subflow it stepped into, then reads it back. Refuses contexts the debugger did not start, so it cannot stop a real flow run.
Instructions
End a debug run, and any subflow it stepped into, then read it back. Safe to repeat. It refuses a flow context the debugger did not start, so it cannot end a real flow run. Needs only write, so it works under NEX_POLICY_DENY=execute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| context_id | Yes | The run's root context id, from debug_flow_start or list_flow_debug_sessions. |