triage_digest
Summarize mailbox state by sender, label, and age buckets with unread and attachment counts, enabling informed bulk-archive, snooze, or label decisions.
Instructions
Structured overview of a mailbox slice for triage DECISIONS — sender / label / age buckets plus unread and attachment counts, instead of a raw thread list. USE WHEN: deciding what to bulk-archive/snooze/label, or summarizing inbox state ('what's in my inbox?'). DO NOT USE: to read a specific thread (use search/get_thread). Samples up to max most-recent matches; hasMore flags that more matched than were sampled. byAge buckets by each thread's FIRST message date (thread age, not last activity). SIDE EFFECTS: none.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | ||
| topN | No | ||
| query | No | in:inbox |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| byAge | Yes | ||
| query | Yes | ||
| unread | Yes | ||
| hasMore | Yes | ||
| sampled | Yes | ||
| topLabels | Yes | ||
| topSenders | Yes | ||
| withAttachments | Yes |