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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "modify_labels"
}
}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 |