apply_label
Apply a label to an email using its UID to categorize messages within a mailbox, enabling efficient organization and retrieval by label.
Instructions
Apply a label to an email
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": {
"uid": "<uid>",
"label": "<label>"
},
"name": "apply_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Email UID | |
| label | Yes | Label to apply | |
| mailbox | No | IMAP mailbox the UID came from (the `mailbox` field in list results, e.g. "[Gmail]/Sent Mail"). Defaults to INBOX. Required for emails returned by get_emails_by_label, since UIDs are only unique within a mailbox. |