pi_cancel
Cancel a queued, running, or async task by ID to stop work, free queue slots, and prevent further execution or acceptance steps.
Instructions
取消一个任务。 三种情况都支持,立即生效: · 排队中的 → 直接出队,不占用资源 · 正在跑的 → 立即中止,验收链不再继续 · 异步派发的 → 置取消标记 + 中止当前节点
【何时用】任务跑偏了(在乱改文件)、用户要求停止、或排队太久想腾出槽位。 【取消后】任务状态变 cancelled,可用 pi_result 查看最终状态。 【不要用】仅仅因为『等得有点久』就取消 —— 先 pi_status 看它是不是在正常干活。
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": {
"taskId": "<taskId>"
},
"name": "pi_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | 要取消的任务 ID,从 pi_status 或派活返回值里拿。 |