agent_ex_cancel
Cancel a running background agent task by ID, terminating its whole process group. Returns the current status unchanged if the task already finished.
Instructions
取消任务(状态感知、幂等):running 杀整个进程组;已终态则原样返回当前状态。 若返回带warning,说明进程树快照不可用(ps 被拒),组外逃逸的 agent 子进程可能残留。
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": {
"task_id": "<task_id>"
},
"name": "agent_ex_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | 任务 id |