Bulk action
bulk_actionPerform batch operations on up to 100 emails by UID: mark read/unread, flag/unflag, move, or delete, returning success and failure counts.
Instructions
Batch operation on multiple emails by UID list. Supports mark_read, mark_unread, flag, unflag, move, and delete. Max 100 IDs per call. Returns success/failure counts.
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": {
"account": "<account>",
"action": "<action>",
"ids": "<ids>"
},
"name": "bulk_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Array of email UIDs (max 100). Get UIDs from list_emails or search_emails. | |
| action | Yes | Bulk action to perform | |
| account | Yes | Account name from list_accounts | |
| mailbox | No | Source mailbox containing the emails | INBOX |
| destination | No | Destination mailbox — required when action is 'move' |