gws.mail.modify_message
Add or remove labels on Gmail messages to archive, star, mark read/unread, or apply custom labels.
Instructions
Add or remove labels from a Gmail message (use for archiving, starring, marking read/unread, or applying custom labels)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Account label or email. Uses default if omitted. | |
| messageId | Yes | The message ID | |
| addLabelIds | No | Label IDs to add (e.g., ['STARRED', 'Label_123']) | |
| removeLabelIds | No | Label IDs to remove (e.g., ['INBOX', 'UNREAD']) |