sweep_snoozed
Wakes up all snoozed emails whose date is due, returning them to the inbox as unread. Batch processes 1000 messages per request and reports failures for safe retry.
Instructions
Resurface all snoozed threads whose date is due (<= today), batched at 1000 messages per API request. USE WHEN: the user asks to process due snoozes, or as a scheduled maintenance call. SIDE EFFECTS: due threads return to the inbox marked unread; safe to run repeatedly. failedCount/errors report messages a batch could not wake (their label is kept for the next sweep).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| woken | Yes | ||
| errors | Yes | ||
| wokenCount | Yes | ||
| failedCount | Yes |