Cancel a delegated OpenCode session
ode_cancelAbort an active session started by the delegate tool. Use this to stop a running task immediately.
Instructions
Aborts an in-progress session started by ode_delegate. A no-op (still returns ok) if it already finished.
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": {
"sessionId": "<sessionId>"
},
"name": "ode_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session id returned by ode_delegate. |