Apply a label
add_labelApplies an existing label to a Proton Mail message while keeping it in its current folder and retaining its other labels.
Instructions
Applies an existing label to a message. In Proton a message lives in exactly one folder but can carry any number of labels, so this adds to the message rather than moving it: it stays where it is and keeps the labels it already has. The label has to exist already; this server does not create labels.
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": {
"messageId": "<messageId>",
"label": "<label>"
},
"name": "add_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | The label name, for example "Work". The "Labels/" prefix may be included and is optional. Use list_folders to see which labels exist. Labels are created in Proton itself, not here. | |
| mailbox | No | The mailbox the message is in, if known. Only a shortcut for the lookup. | |
| messageId | Yes | The message id from a listing or a search, with or without angle brackets. |