modify_gmail_message_labels
Add or remove Gmail message labels to archive, delete, or organize emails.
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.
Args: user_google_email (str): The user's Google email address. Required. message_id (str): The ID of the message to modify. add_label_ids (Optional[List[str]]): List of label IDs to add to the message. remove_label_ids (Optional[List[str]]): List of label IDs to remove from the message. dry_run (bool): If True, preview label changes without mutating the message.
Returns: str: Confirmation message of the label changes applied to the message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| message_id | Yes | ||
| add_label_ids | No | Label IDs to add to the message. | |
| remove_label_ids | No | Label IDs to remove from the message. | |
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |