archive_emails
Archive specific Gmail messages by removing their INBOX label so they stay in All Mail and remain searchable; use message-level IDs, and restore by reapplying the INBOX label.
Instructions
Archive specific MESSAGES by removing their INBOX label — they stay in All Mail and remain searchable. Message-level only; use unlabel_thread with label_ids=["INBOX"] to archive a whole conversation. Reversible with label_messages(["INBOX"]). Every id is read back afterwards, so the response reports the verified count and names any id that does not exist.
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": {
"account": "<account>",
"message_ids": "<message_ids>"
},
"name": "archive_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account id ("personal", "tamu"). | |
| message_ids | Yes | Gmail message ids to archive. |