Move emails to Trash
trash_emailMove emails to the account's Trash folder, found by its \Trash attribute or a well-known name. This is how these tools remove email, and it is reversible: the emails stay in Trash, where the user can restore or delete them. No tool deletes email permanently. Moving gives the emails new UIDs; the result lists their old UIDs as stale.
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>"
},
"name": "trash_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | Email UIDs to move to Trash | |
| Yes | The email account address | ||
| mailbox | Yes | Mailbox/folder the UIDs currently live in, e.g. "INBOX" |
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. |