add_label
Assign a label to an email to categorize and organize it. Compatible with ProtonMail, Gmail, and IMAP accounts by copying or flagging.
Instructions
Add a label to an email. For ProtonMail, this copies the email into the corresponding Labels/ folder. For Gmail and standard IMAP, this sets a keyword flag on the message.
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": "add_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Label name to add (e.g., "Important", "Project-X") | |
| 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) |