update_progress
Update a task's progress field with an absolute value during long-running work. Smaller values are rejected; repeated calls are idempotent, so agents can report progress and avoid stall detection.
Instructions
推进某个任务的进度字段(长耗时任务用)。进度只增不减:传入比当前更小的值会被显式拒绝并告诉你当前值是多少(对齐 MCP 规范 progress 语义)。current 传绝对值而非增量,因此重复调用是幂等的、重试不会推两遍。建议长任务周期性上报 —— 否则会被 list_stalled 判定为停滞。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| done | No | 显式标记该项已完成 | |
| actor | No | 操作者标识,默认 agent | |
| field | No | 要推进的 progress 字段 key;省略则用第一个 | |
| total | No | 总量;省略则沿用任务上已有的 total | |
| current | Yes | 已完成的量(绝对值)。必填 | |
| message | No | 当前在干什么,人类可读,如「上传中:第 300 个」 | |
| task_id | Yes | 任务 id(必填) | |
| weight_bytes | No | 本项的权重(字节)。批量搬运场景下用它实现「按字节加权」——大的文件走得慢时进度条不会假装很快 |