Move a message to a folder
mail_moveMoves a message to another folder of the same account and returns its id there (some providers change it). Use it to file mail; get the folder_id from mail_list_folders, and use mail_archive or mail_trash for those. A move into Trash counts as mail_trash, which the account policy can refuse. Example: { "message_id": "msg_…", "folder_id": "fld_…" }.
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_id": "<message_id>",
"folder_id": "<folder_id>"
},
"name": "mail_move"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes | A folder id (`fld_…`) from mail_list_folders. | |
| message_id | Yes | A message id (`msg_…`) from a list or search. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | The message's id after the move (it can change). |