modify_labels
Batch add or remove labels on emails using positions or message IDs. Automatically replaces existing Triage labels when adding a new Triage label.
Instructions
Batch add/remove labels on emails. Accepts positions[] and/or message_ids[], plus add_labels[] and/or remove_labels[] (label names). When adding a Triage/* label, all other Triage/* labels on the email are automatically removed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positions | No | Position numbers from the email list | |
| add_labels | No | Label names to add | |
| message_ids | No | Gmail message IDs | |
| remove_labels | No | Label names to remove |