bulk_action
Apply actions to all emails matching a filter in a folder for bulk cleanup, such as marking newsletters as read or moving messages from one sender.
Instructions
Apply an action to all emails matching a filter in a folder. Use for bulk cleanup operations like marking all newsletters as read or moving all emails from a sender.
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": {
"action": "<action>",
"filter": "<filter>"
},
"name": "bulk_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to apply | |
| filter | Yes | Search filter to match emails | |
| folder | No | Folder to operate on | INBOX |
| destination | No | Destination folder (required for 'move' action) |