email_batch_label
Apply or remove labels on up to 1,000 Gmail emails in a single call. Batch labeling avoids repeated individual requests when organizing large groups of messages.
Instructions
Add or remove labels on multiple emails at once (Gmail only). Much faster than individual email_label calls.
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>",
"emailIds": "<emailIds>"
},
"name": "email_batch_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailIds | Yes | Array of email IDs to label | |
| accountId | Yes | ||
| addLabels | No | ||
| removeLabels | No |