oc_cancel
Cancel a task by its runId to stop a running agent job. Also releases the bridge's session lock, so use it to recover runs stuck in running or blocked by SESSION_BUSY.
Instructions
取消 runId 对应的任务,成功返回 status=aborted。只有用户明确说要停掉/取消时才调用,成功后用一句话确认,不要念底层字段。Gateway 上已无活动任务时视为幂等成功(no-active-run),并释放本桥接的会话锁——因此任务长时间悬挂在 running、或 SESSION_BUSY 挡住新任务时,取消它是最可靠的恢复手段。
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": {
"runId": "<runId>"
},
"name": "oc_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | 任务 runId。 |