update_message_labels
Add or remove Proton label paths on one email without relocating it. Provide label names under Labels/ to update the message's labels.
Instructions
Add or remove Proton labels on a single message without moving it. Prefer bulk_update_labels to apply label changes across multiple messages. Labels live under the Labels/ namespace (e.g. 'Labels/Work'). Use for one message at a time. Create missing labels first with create_folder using a 'Labels/' prefix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailId | Yes | Composite email id in FOLDER::UID format. | |
| labelsToAdd | No | Label paths to add, e.g. ["Labels/Work", "Labels/Receipts"]. The 'Labels/' prefix is optional and will be prepended if missing. | |
| labelsToRemove | No | Label paths to remove. Idempotent — silently ignored if the label is not applied. |