apply_thread_action
Apply a single mailbox action (archive, mark read, trash, etc.) to every message in an email thread at once using a threadId. Supports previewing impact, limiting to unread messages, and refreshing the index.
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. |