Move emails
move_emailMove emails from one folder to another in the same account. Moving gives the emails new UIDs: the result lists their old UIDs as stale, and any UIDs the folder did not have. trash_email moves emails to the account's Trash folder without needing its name.
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": {
"email": "<email>",
"mailbox": "<mailbox>",
"uids": "<uids>",
"to_mailbox": "<to_mailbox>"
},
"name": "move_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | Email UIDs to move | |
| Yes | The email account address | ||
| mailbox | Yes | Mailbox/folder the UIDs currently live in, e.g. "INBOX" | |
| to_mailbox | Yes | Destination mailbox name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | How many emails were moved: only those `from_mailbox` had. | |
| stale_uids | Yes | The UIDs the moved emails had in `from_mailbox`. They are no longer valid: moving gives the emails new UIDs. List `to_mailbox` to find them again. | |
| to_mailbox | Yes | The folder they are in now. For trash_email, the account's Trash folder. | |
| from_mailbox | Yes | The folder the emails were in. | |
| missing_uids | Yes | UIDs `from_mailbox` did not have — already moved, or never there. Nothing was done for them; asking again for a move that already happened is not an error. |