bulk_move
Move multiple emails to a target folder in one pass. Select messages by explicit IDs or search criteria, and preview changes with dry-run before applying.
Instructions
Move multiple emails to a target folder in one IMAP pass. Accepts either explicit emailIds[] or a match criteria object (XOR). Supports dryRun to preview. For single-message moves use move_email.
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": {
"targetFolder": "<targetFolder>"
},
"name": "bulk_move"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | No | Search criteria to select messages. XOR with emailIds. | |
| dryRun | No | Preview without moving. | |
| folder | No | Source folder (required when using match). | |
| emailIds | No | Explicit email IDs (FOLDER::UID format). XOR with match. | |
| maxBatchSize | No | Maximum number of messages to process. Defaults to 500. Use to prevent runaway operations. | |
| targetFolder | Yes | Destination folder. |