Apply a label
apply_labelTag one or many messages with an existing label while leaving them in place; target messages by uid and preview changes with dry_run.
Instructions
Tag one message (uid) or many (uids) with an existing label. Messages stay where they are.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"label": "<label>"
},
"name": "apply_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | One message. Pass this or uids. | |
| uids | No | Several messages, as explicit uids. No wildcards. | |
| label | Yes | An existing label. On Proton the Labels/ prefix is optional; elsewhere this is an ordinary mailbox name. | |
| folder | No | Source folder, default INBOX. | |
| dry_run | No | Preview exactly what would happen and change nothing. Needs no confirmation. | |
| uidvalidity | No | UIDVALIDITY reported alongside the uid. Pass it back so a mailbox resync cannot make this act on the wrong message. |