bulk_action
Apply bulk email actions like archive, mark read, or star to selected messages or Gmail query results without remembering label names. Streamlines inbox management by acting on multiple emails at once.
Instructions
Apply a named action to a SELECTION of messages in one call — the friendly verb layer over modify_labels (no need to remember system label names). Selection is one id, a list of ids, or a Gmail query (acts on EVERY match, in batches of 1000). Verbs: archive (remove from Inbox), unarchive, mark_read, mark_unread, star, unstar, spam, unspam, trash (recoverable 30d), untrash. Refuses an empty/absent selection so it can never sweep a whole mailbox. Tip: run count_messages on the same query first to see the blast radius.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Gmail query; acts on EVERY match. | |
| action | Yes | The action verb to apply to the selection. | |
| account | Yes | Email address of the authorized Gmail account to act on. | |
| message_id | No | A single id. | |
| message_ids | No | An explicit list of message ids. |