opencode_job_cancel
Abort a running OpenCode session by session ID, stopping the task it owns. Use the optional directory to target a specific project.
Instructions
Abort the OpenCode session owned by a task.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "opencode_job_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Project directory to target. Optional; defaults to the server default project. | |
| sessionId | No |