status
Read or update session state including blocking status, current task, and auto-computed progress. Use clear_fields to clear list fields.
Instructions
读取或更新会话状态(阻塞状态、当前任务、进度等)。不传 state 参数则读取,传则部分更新。progress 为只读计算字段,自动从 track 活跃问题 + task 未完成任务聚合生成,无需手动写入。清空列表字段时使用 clear_fields 参数(因部分 IDE 会过滤空数组)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | 要更新的字段(部分更新)。progress 为只读字段,传入会被忽略。 | |
| clear_fields | No | 要清空的列表字段名。用于绕过部分 IDE 过滤空数组的问题,例如传 ["pending"] 等同于 state.pending=[]。 |