run_cancel
Cancel a background run started with run_submit. Returns cancellation status, handling already-finished runs gracefully.
Instructions
Cancel a background run started with run_submit.
Idempotent: calling this on a run that is already finished/cleaned
reports cancelled: false, state: <its actual terminal state> rather
than erroring — matching execute_code's own "no partial result" rule,
there is nothing partial to hand back either way.
Propagation depends on the SELECTED PROVIDER (see
list_execution_providers' cancel capability). The built-in local
provider does not support stopping a run once it has started; that is
reported honestly here rather than silently pretended to have worked —
the computation keeps running to completion and its result stays
available via run_inspect, so bound it in advance with run_submit's own
timeout instead. A provider that DOES advertise cancel: true reaches
the full spawned process tree the same way execute_code's own
cancellation does — RunSupervisor already owns that; this tool only
calls it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes |