add_label
Apply a Proton label to one or more messages by UID while keeping them in their current folder; use it to organize mail without moving it.
Instructions
Add a Proton label (uids = a single uid OR a list); the message stays in its folder and is NOT moved (compare move_email).
label e.g. 'Important' or 'Labels/Important'.
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": {
"uids": "<uids>",
"label": "<label>"
},
"name": "add_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | ||
| label | Yes | ||
| folder | No | INBOX |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |