move_email
Move an email from one folder to another using IMAP, with automatic fallback to copy-and-delete when MOVE is unsupported.
Instructions
Move a message from one folder to another.
Uses IMAP MOVE when the server supports it, otherwise COPY followed by flagging the original \Deleted and EXPUNGE. The message gets a new UID in the destination folder, so the old uid is no longer valid afterwards.
Args: account: Account name from list_accounts. folder: Folder the message is currently in. uid: Message UID in that folder. dest_folder: Destination folder name (see list_folders).
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>",
"folder": "<folder>",
"uid": "<uid>",
"dest_folder": "<dest_folder>"
},
"name": "move_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| folder | Yes | ||
| account | Yes | ||
| dest_folder | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| uid | Yes | ||
| from | Yes |