cancel
Stop a delegated task's current operation by task_id, potentially preventing a prompt from being sent or interrupting in-flight work; verify delivery and terminal state afterward.
Instructions
请求停止 task_id 的当前操作,可能阻止 prompt 发出或中断在途工作。先用 status 核对目标轮及开工或终态证据。delivery 记录取消指令的送达情况。调用后核对同一轮的 prompt_terminal、stop_reason 和 native_stop_confirmed,判断原轮是否被取消。DSH 会话由 close 关闭。
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": "cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |