Modify labels
modify_labelsAdd or remove Gmail labels on a message. System labels require a backslash prefix; removing \Inbox archives the message.
Instructions
Add and/or remove Gmail labels on a message. System labels use a backslash prefix (\Inbox, \Starred, \Important); custom labels use their plain name. Removing \Inbox archives.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Labels to add. | |
| remove | No | Labels to remove. | |
| account | No | Gmail address to act on. Omit to use the default account. | |
| gmMsgId | Yes | Gmail message id (X-GM-MSGID), as returned by search_messages or get_message. |