Move messages to a folder
move_messagesMoves up to 50 messages to an existing Proton Mail folder, removing them from their current folder while preserving labels. Use folders only; apply labels with add_label instead.
Instructions
Moves messages into a folder. In Proton a message lives in exactly one folder, so this takes it out of the one it is in. Labels are not affected and survive the move. Only folders are valid destinations: moving into a label would apply the label and leave the message where it is, so a label is refused here and add_label does that job. The destination has to exist; this server does not create 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": {
"messageIds": "<messageIds>",
"target": "<target>"
},
"name": "move_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | The destination folder, for example "Archive" or "Folders/Work". Use list_folders to see the paths. Note that Proton fills the inbox through delivery: a message moved to "INBOX" over IMAP was measured to end up elsewhere shortly afterwards. | |
| mailbox | No | The mailbox the messages are in, if they share one. Only a shortcut: without it every message is looked for across the mailboxes it could be in, which costs a request each. | |
| messageIds | Yes | The message ids, as they came from a listing or a search. At most 50 per call. |