Update flags (bulk)
bulk_update_flagsAdd or remove flags on multiple Proton Mail messages at once by UID list or search criteria, with an optional dry run to preview affected messages.
Instructions
Add or remove flags on multiple messages in one operation. Provide EITHER uids OR match, plus at least one of flagsToAdd / flagsToRemove. Same flag whitelist as update_message_flags.
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_flags"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | No | Explicit UIDs to update, scoped to `folder`. Mutually exclusive with `match` — provide exactly one. | |
| match | No | Search criteria selecting the messages to update (same fields as search_messages). Mutually exclusive with `uids`. | |
| dryRun | No | When true, preview the exact UIDs that would be updated without changing any flags. Run this first for match-based selections. | |
| folder | No | Folder containing the messages (default: INBOX). | INBOX |
| flagsToAdd | No | Flags to add across all selected messages. System flags include the backslash (e.g. ["\\Seen"]); user keywords are bare (e.g. ["Important"]). At least one of flagsToAdd/flagsToRemove must be non-empty. | |
| flagsToRemove | No | Flags to remove across all selected messages (e.g. ["\\Seen"] to mark unread). |