Update labels (bulk)
bulk_update_labelsAdd or remove Proton labels on many messages at once using explicit UIDs or search criteria, with an optional dry-run preview before changes.
Instructions
Add or remove Proton labels on many messages in one operation. Provide EITHER uids OR match (XOR), plus at least one of labelsToAdd / labelsToRemove. Labels are given by name or path, as in update_message_labels. Supports dryRun: true for safe preview.
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": "bulk_update_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | No | Explicit UIDs to label, scoped to `folder`. Mutually exclusive with `match` — provide exactly one. | |
| match | No | Search criteria selecting the messages to label. Mutually exclusive with `uids`. | |
| dryRun | No | When true, preview the exact UIDs that would be updated without changing any labels. | |
| folder | No | Source folder containing the messages (default: INBOX). Messages stay here; labels are additive. | INBOX |
| labelsToAdd | No | Labels to add, by name or path (e.g. ["Work"] or ["Labels/Work"]); any case. Each label must already exist (create it with create_label). At least one of labelsToAdd/labelsToRemove must be non-empty. | |
| labelsToRemove | No | Labels to remove, by name or path (e.g. ["Work"] or ["Labels/Work"]). Removing a label a message does not carry is a silent no-op. |