Interrupt a session
oc_interruptStops the current turn in an OpenCode session by session ID, letting you cancel ongoing work without ending the session.
Instructions
Stop the current turn of an OpenCode 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": {
"session_id": "<session_id>"
},
"name": "oc_interrupt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |