sweep_snoozed
Wake all snoozed email threads whose due date has arrived, returning them to the inbox as unread. Use dry-run to preview due threads without acting.
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 |