update_message_labels
Add or remove labels on a single Proton email without moving it. Provide label paths to update the message's labels in place.
Instructions
Add or remove Proton labels on a single message without moving it. Labels live under the Labels/ namespace (e.g. 'Labels/Work'). Use for one message at a time. Prefer bulk_update_labels to apply label changes across multiple messages. 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. |