organize_emails
Add or remove labels on Gmail emails by ID or search query to archive, mark as read, or categorize mail; never deletes and returns changed count.
Instructions
Adds or removes labels on emails, by ID or by Gmail search. Archive = remove INBOX; mark as read = remove UNREAD. Never deletes anything. Returns how many emails changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Cap when using query (default 500, max 5000) | |
| query | No | Gmail search to select older mail | |
| account | Yes | Email address or label of the account (see list_accounts). | |
| add_labels | No | Label names or IDs. System labels: INBOX, UNREAD, STARRED, IMPORTANT. | |
| message_ids | No | ||
| remove_labels | No | Label names or IDs. System labels: INBOX, UNREAD, STARRED, IMPORTANT. |