task_heartbeat
Keep long-running tasks alive by sending a heartbeat and appending milestone notes to the progress log, preventing premature termination. Requires the current attempt ID to avoid late overrides.
Instructions
心跳 worker/主控里程碑汇报:给一个 running 任务刷 last_heartbeat_at + heartbeat_n,并把 note 追加进 progress_log(里程碑)。注意:服务端已对每个 run_* 子进程自动心跳(进程活着就跳,无需调用),本工具供能调 MCP 的主控/worker 在生产阶段主动上报里程碑(如『方案已出,等决策』),或手动续活一个进程仍活着但长期无 stdout 的长任务。需持当前 attempt_id(claim 签发;旧/伪造令牌拒绝),防迟到覆盖。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | 里程碑说明,追加到 progress_log | |
| task_id | Yes | ||
| attempt_id | No | 当前能力令牌(claim 签发);交接后被撤权者用旧令牌被拒 |