remove_label
Remove a label from an email. For ProtonMail, removes the email from the label folder; for Gmail and IMAP, removes the keyword flag.
Instructions
Remove a label from an email. For ProtonMail, this removes the email from the label folder. For Gmail and standard IMAP, this removes a keyword flag.
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": {
"account": "<account>",
"emailId": "<emailId>",
"mailbox": "<mailbox>",
"label": "<label>"
},
"name": "remove_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Label name to remove | |
| account | Yes | Account name from list_accounts | |
| emailId | Yes | Email ID (UID) from list_emails | |
| mailbox | Yes | Mailbox containing the email (must be a real folder) |