email_transfer
Move or copy emails between accounts while preserving the original sender, date, and threading; optionally trash the source copy only after a confirmed import for safe cross-account transfers.
Instructions
Move or copy emails BETWEEN accounts, preserving the original message intact (sender, date, threading) by transferring the raw MIME. Fetches each message from the source account and imports it into the target account. With deleteAfter=true the source copy is sent to trash only after a confirmed import, making this a safe cross-account move.
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": {
"sourceAccountId": "<sourceAccountId>",
"targetAccountId": "<targetAccountId>",
"emailIds": "<emailIds>"
},
"name": "email_transfer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailIds | Yes | Source email IDs to transfer | |
| markRead | No | Mark imported messages as read in the target. Default: provider default (usually unread). | |
| deleteAfter | No | Send the source copy to trash after a successful import. Default false (copy, leaving the original in place). | |
| sourceFolder | No | Source folder (required for IMAP/iCloud when emails are not in INBOX) | |
| targetFolder | No | Destination folder/label in the target account (Gmail label id or name; IMAP/Outlook folder name). Defaults to INBOX. | |
| sourceAccountId | Yes | Account to read messages from | |
| targetAccountId | Yes | Account to import messages into |