Abort run
abort_runStops a run. A queued run ends at once as aborted; a running run stops at its next page boundary (abort_requested is true until then). Records it committed stay readable, and charged, through get_run_items and get_run_result. Returns the run, whose status becomes aborted. A run that already ended is returned unchanged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"run_id": "<run_id>"
},
"name": "abort_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| links | Yes | ||
| limits | Yes | ||
| run_id | Yes | ||
| status | Yes | ||
| surface | Yes | ||
| progress | Yes | ||
| source_id | Yes | ||
| created_at | Yes | ||
| started_at | Yes | ||
| finished_at | Yes | ||
| stop_reason | Yes | ||
| units_charged | Yes | ||
| abort_requested | Yes | ||
| definition_version | Yes | ||
| poll_after_seconds | No |