batch_operations
Perform bulk IMAP actions—move, delete, or label up to 100 emails at once across any provider, avoiding repetitive single-message changes.
Instructions
Perform bulk IMAP operations (move, delete, label) on up to 100 emails at once — works with any provider.
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>",
"uids": "<uids>",
"folder": "<folder>",
"action": "<action>"
},
"name": "batch_operations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | Array of email UIDs to operate on (max 100) | |
| action | Yes | The batch action to perform | |
| folder | Yes | The folder containing the emails | |
| accountId | Yes | The ID of the account to use | |
| addLabels | No | Labels to add (for label action) | |
| removeLabels | No | Labels to remove (for label action) | |
| targetFolder | No | Target folder (required for move action) | |
| confirmationId | No | Confirmation token from a prior confirmation-required response. Required to execute write operations when server is in --confirm mode. |