opencode_interrupt
Interrupt an active OpenCode task by sending Ctrl+C, capturing the final output buffer and interruption reason to stop execution and retrieve results.
Instructions
Sends Ctrl+C to interrupt the task, returns the final output buffer and reason.
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": {
"reason": "<reason>"
},
"name": "opencode_interrupt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why the task is being interrupted. | |
| session_id | No | Session ID (defaults to active session). |