Remove a label
remove_labelTakes a label off one message or many without moving them. Preview the expunge with dry_run first, then confirm, so the right messages are affected.
Instructions
Take a label off one message (uid) or many (uids). The messages stay where they are. GATED: removing a label ends in an expunge against the label mailbox, so confirm it or preview with dry_run=true first.
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": "remove_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 | The label to take off. On Proton the Labels/ prefix is optional. | |
| folder | No | Folder the message lives in, default INBOX. | |
| dry_run | No | Preview exactly what would happen and change nothing. Needs no confirmation. | |
| confirmed | No | ||
| uidvalidity | No | UIDVALIDITY reported alongside the uid. Pass it back so a mailbox resync cannot make this act on the wrong message. |