duration_elapsed
Track elapsed time for tasks: records a start moment on first call, then returns how long has passed, with reset to begin a new timer.
Instructions
任务时长感知:记录任务起始时刻并返回「已过去多久」。首次调用自动开始计时,后续调用返回累计时长;可用 reset=true 重新计时。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | 可选任务描述,原样返回给调用方 | |
| reset | No | 重置该任务的起始时刻为当前(或 started_at),作为新一轮计时开始 | |
| task_id | No | 任务 id,用于区分同一会话下的多个任务,缺省为 main | |
| timezone | No | 结果显示所用 IANA 时区,缺省系统时区 | |
| session_id | No | 会话 id,缺省为 default(同一 MCP 连接内默认使用一个会话) | |
| started_at | No | 可选:手动指定任务的起始时刻(ISO 8601 字符串)。不给则首次调用自动记录为当前时刻 |