modify_labels
Add or remove IMAP flags like Seen or Flagged on an email to organize messages across Gmail, Outlook, and custom domains.
Instructions
Add or remove IMAP flags (e.g. \\Seen, \\Flagged) on an email — works with Gmail, Outlook, and custom domains.
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": {
"accountId": "<accountId>",
"uid": "<uid>",
"folder": "<folder>"
},
"name": "modify_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | The UID of the email | |
| folder | Yes | The folder containing the email | |
| accountId | Yes | The ID of the account to use | |
| addLabels | No | Labels to add (e.g. \Seen, \Flagged) | |
| removeLabels | No | Labels to remove | |
| confirmationId | No | Confirmation token from a prior confirmation-required response. Required to execute write operations when server is in --confirm mode. |