opencode_cancel_run
Cancel a running or queued agent run.
Instructions
Cancel a running or queued agent run.
Return Format
{"success": bool, "message": str, "data": {"job_id": str}}
Examples
opencode_cancel_run(job_id="abc123")
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": {
"job_id": "<job_id>"
},
"name": "opencode_cancel_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job ID to cancel |