sch_move_mail
Move one message by UID from a source folder to a destination folder; the destination must already exist.
Instructions
Move one message, addressed by UID, from source_folder to dest_folder.
Uses UID MOVE when the server supports it, else UID COPY + \Deleted + UID EXPUNGE, and a bare EXPUNGE only on a server with neither MOVE nor UIDPLUS. Destination folder must already exist (use sch_create_folder first if needed).
Args: msg_id: Source message UID from sch_list_mail / sch_search_mail (one UID; ranges and lists are refused) dest_folder: Target folder name source_folder: Source folder (default: INBOX) account: Account key in credentials.json (e.g. "personal" or "work"). Default: the account named by "default" in that file.
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": {
"msg_id": "<msg_id>",
"dest_folder": "<dest_folder>"
},
"name": "sch_move_mail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msg_id | Yes | ||
| account | No | ||
| dest_folder | Yes | ||
| source_folder | No | INBOX |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||