channel_unread
Query per-channel unread counts for a reader in a project, showing who mentioned them, message counts, and latest excerpts without clearing unread status.
Instructions
某读者在某项目下的逐频道未读计数(谁在叫你、有几条、最新一条讲什么)。
纯读:查询不会清掉未读,也不会在库里留下水位行。要清零调 channel_read_ack。
未读 = mentions 整值命中 reader,且消息归属该项目,且晚于该频道的已读水位。 没有水位时按"全部未读"算。
返回 total 与逐频道的 count / latest_sender / latest_excerpt / latest_at。 truncated=true 表示命中扫描上限、计数偏少,不是"就这么多"。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reader | Yes | 读者角色标识,如 "leader-cc" / "leader-codex"。**不要传 session_id**: 会话是一次性的,按会话记水位会让每开一个新会话就把历史消息重算成未读。 | |
| project_id | No | 归属项目;留空按当前工作目录自动归属。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||