batch_move_emails
Search emails matching a query and move all matches to a target folder, with dry-run preview and automatic folder creation if missing.
Instructions
Search for emails matching a query and move ALL matches to a target folder. Supports dry_run to preview before moving. Auto-creates target folder if it does not exist.
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": {
"search_query": "<search_query>",
"target_folder": "<target_folder>"
},
"name": "batch_move_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, only preview matches without moving | |
| max_emails | No | Maximum emails to move | |
| search_query | Yes | Search query (same as search_emails) | |
| target_folder | Yes | Target folder name. Will be created under Inbox if it does not exist. |