opencode_job_cancel
Cancel a running OpenCode job by aborting its session, stopping all work in that session.
Instructions
Explicitly abort the OpenCode session owned by a job. This also stops other work in that session.
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": {
"jobId": "<jobId>"
},
"name": "opencode_job_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| error | No | ||
| jobId | No | ||
| result | No | ||
| status | Yes | ||
| isError | Yes | ||
| directory | No | ||
| messageId | No | ||
| sessionId | No |