Mail: Move messages
mail_moveMove the caller's messages to another folder — archive, spam, trash or any folder from mail_list_folders. Takes message ids from mail_list_messages; the source folder comes from each stored message, so a wrong folder cannot be named. The messages are NOT deleted: they live in the target folder and can be moved back. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"message_ids": "<message_ids>"
},
"name": "mail_move"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Shorthand: resolves to the mailbox's own Trash. | |
| message_ids | Yes | ||
| target_folder | No | An existing folder name from mail_list_folders. |