Trash Gmail message or thread
gmail_trash_messageMove a Gmail message or thread to Trash, keeping it recoverable for 30 days. Specify message_id or thread_id; optionally target a non-default account.
Instructions
Move one message or one whole thread to Trash. RECOVERABLE — Gmail keeps trashed mail for ~30 days and it can be restored from the Trash folder; nothing is permanently deleted by this tool.
Args:
message_id OR thread_id (exactly one, required): target. Ids are account-specific.
account (string, optional): email or alias. Omit for the default account.
Returns: confirmation of what was trashed and in which account.
Examples:
{"message_id": "18c2f5a7b3d9e1f0"}
{"thread_id": "18c2f5a7b3d9e1f0", "account": "personal"}
Error Handling: a 404 usually means the id belongs to a different account — check the 'account' field on the search result that produced the id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gmail_trash_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||