Archive an email
archive_messageMoves an email out of its folder into the mailbox's archive (the Archive folder, or All Mail on Gmail). The message is not deleted. Returns the source and destination folders and the new uid.
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": {
"accountId": "<accountId>",
"uid": "<uid>"
},
"name": "archive_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | IMAP UID of the message, as returned by search and listing tools. | |
| folder | No | IMAP folder containing the message. Defaults to INBOX. | INBOX |
| accountId | Yes | Account id, as returned by list_accounts. |