HTTP REFERENCE
Cancel a tool run
Cancel execution, preserve partial output and verify teardown.
POST/v1/tool-runs/{run_id}/cancel
Stop a run you no longer need
Send POST with a new cancellation key, then retrieve the run until it reaches a terminal state.
What to do next
Check cleanup_status and keep any useful partial output.
Read the step-by-step guide →
Send an Idempotency-Key. Keep the same key and body when retrying this operation.
Parameter and response reference
Parameters
run_idpath · stringrequired
authorizationheader · string | nullrequired
idempotency-keyheader · string | nullrequired
Responses
200 Successful Response422 Validation Error