task_interrupt
Stop a running task that hangs or goes off track by terminating its worker process tree, marking it interrupted, and preserving partial output for later resumption.
Instructions
中断一个 running 任务:kill 其 worker 子进程树(Windows 走 taskkill /T /F,Unix 走 SIGTERM→SIGKILL),并把任务置 interrupted 态(保留中断前部分输出 + session_id,供 task_resume 续接)。仅 running 态可中断;终态任务拒绝。适合长任务卡死/跑偏时人工叫停。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | 发起中断者标识(默认 user) | |
| task_id | Yes |