Modify Gmail Message Labels
modify_gmail_message_labelsModify Gmail message labels by adding or removing label IDs. Archive a message by removing the INBOX label, or delete it by adding the TRASH label.
Instructions
Adds or removes labels from a Gmail message. To archive an email, remove the INBOX label. To delete an email, add the TRASH label.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address. Required. | |
| message_id | Yes | The ID of the message to modify. | |
| add_label_ids | No | List of label IDs to add to the message. | |
| remove_label_ids | No | List of label IDs to remove from the message. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |