modify_message_labels
Add or remove labels on one Gmail message to archive, mark read, star, or categorize it, and return the updated label IDs.
Instructions
Add or remove labels on one message and return its updated {id,threadId,labelIds}. Archive by removing INBOX, mark read by removing UNREAD, star by adding STARRED. Labels must already exist; get IDs from list_labels. Reversible by the opposite call; repeating the same change is harmless. Do not list a label in both arrays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account alias from list_accounts; selects which mailbox to use. | |
| messageId | Yes | Gmail message ID to relabel. | |
| addLabelIds | No | Label IDs to add, e.g. ["STARRED"] or a user label ID from list_labels. | |
| removeLabelIds | No | Label IDs to remove, e.g. ["INBOX"] to archive or ["UNREAD"] to mark read. |