Move message
move_messageMove an email message from one folder to another, with an optional dry run to preview the move. Use it to relocate messages and get a new destination UID.
Instructions
Move an email message to a different folder. Note: the message gets a new UID in the destination folder — the original UID is no longer valid after the move. The destination must be a folder, not a Labels/… path (use update_message_labels to label a message), and not the folder the message is already in. Moving from a label view moves the message out of its real folder and removes the label. Pass dryRun: true to preview the move.
UID + folder pair caveat: IMAP UIDs are per-folder, so UID 42 in INBOX and UID 42 in Sent identify different messages. Always carry the folder a UID came from; never reuse a UID across folders. For thread-level operations on messages you only know by Message-ID, prefer get_thread / move_thread which sidestep this footgun.
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": {
"uid": "<uid>",
"destination": "<destination>"
},
"name": "move_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Message UID (use list_messages or search_messages to find UIDs) | |
| dryRun | No | Preview what would happen, with the message's date, sender and subject, without changing anything. | |
| folder | No | Source folder (default: INBOX) | INBOX |
| destination | Yes | Destination folder path (e.g. Archive, Trash, Spam) |