add_label
Moves an email into a Labels/LabelName folder to apply that label; create the label folder first if it is missing.
Instructions
🏷️ Add a label to an email. Note: Labels are folders with 'Labels/' prefix. This moves the email to 'Labels/LabelName'. Create the label folder first if it doesn't exist.
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": {
"emailId": "<emailId>",
"label": "<label>"
},
"name": "add_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Label name without prefix (e.g., 'Work', 'Important'). Will be moved to 'Labels/LabelName' folder. | |
| emailId | Yes | Email ID |