sweep_snoozed
Process all snoozed emails due today, returning them to your inbox as unread in batches of 1000. Use dryRun mode to preview which threads are due without waking them, ideal for scheduled maintenance or quick status checks.
Instructions
Resurface all snoozed threads whose date is due (<= today), batched at 1000 messages per API request. Set dryRun:true to rehearse: reports the due labels and threads (dueLabels/dueThreads) as the sweep would find them (from the live label listing; a single snooze label with more than 5000 messages is under-counted in the rehearsal), and wakes nothing. USE WHEN: the user asks to process due snoozes, or as a scheduled maintenance call; dryRun to answer 'what is due right now?' without acting. SIDE EFFECTS: due threads return to the inbox marked unread (none with dryRun); 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 |
|---|---|---|---|
| dryRun | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| woken | Yes | ||
| dryRun | Yes | ||
| errors | Yes | ||
| dueLabels | Yes | ||
| dueThreads | Yes | ||
| wokenCount | Yes | ||
| failedCount | Yes | ||
| dueThreadCount | Yes |