Move an email
move_messageMoves an email to an EXISTING folder of the same mailbox (exact path from list_folders), including out of the trash or junk folder. Does not create folders. Returns the source and destination folders and the new uid.
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": {
"accountId": "<accountId>",
"uid": "<uid>",
"destination": "<destination>"
},
"name": "move_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | IMAP UID of the message, as returned by search and listing tools. | |
| folder | No | IMAP folder containing the message. Defaults to INBOX. | INBOX |
| accountId | Yes | Account id, as returned by list_accounts. | |
| destination | Yes | Path of the destination folder. |