apply_thread_action
Apply a mailbox action like archive or mark-read to every message in an email thread at once. Use when you have a threadId and want to affect the whole conversation, with options to preview or limit to unread.
Instructions
Apply a reversible mailbox action to every message in a normalized thread at once. Use when you want to act on a full thread identified by threadId (e.g. archive or mark-read an entire conversation). Supports dryRun, unreadOnly to scope impact, and syncBefore to refresh the index first. Prefer batch_email_action when you have explicit emailIds rather than a threadId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| dryRun | No | Preview the impact without mutating the mailbox. | |
| threadId | Yes | Thread id from get_threads or get_actionable_threads. | |
| syncBefore | No | Refresh the local mailbox index from IMAP before resolving the thread. | |
| unreadOnly | No | Only apply the action to unread messages in the thread. | |
| targetFolder | No | Required when action is move. | |
| continueOnError | No | Continue applying the action after an individual failure. |