Modify Gmail Message Labels
modify_gmail_message_labelsAdd or remove labels from a Gmail message by specifying label IDs to apply or delete.
Instructions
Add or remove labels from a Gmail message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | The ID of the Gmail message to modify labels for | |
| add_label_ids | No | Label IDs to add to the message. Single ID: 'Label_123', List: ['Label_1', 'Label_2'], or JSON string | |
| remove_label_ids | No | Label IDs to remove from the message. Single ID: 'Label_123', List: ['Label_1', 'Label_2'], or JSON string | |
| user_google_email | No | Use 'me' or 'myself' for auto-resolution to authenticated user, or provide specific email address. If None, uses current authenticated user (auto-injected by middleware). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| success | Yes | ||
| userEmail | Yes | ||
| message_id | Yes | ||
| labels_added | Yes | ||
| labels_removed | Yes | ||
| labels_added_names | No | ||
| labels_removed_names | No |