Stop an opencode subagent
stopAbort a running opencode subagent to get its partial output. Works even if the agent ID predates an MCP server restart.
Instructions
Abort a running opencode subagent. Returns what it produced so far. agent_ids from before a restart of the MCP server still work.
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": {
"agent_id": "<agent_id>"
},
"name": "stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes |