trashMessage
Move one or more Gmail messages to the trash or restore them by passing a single message ID or an array of IDs and choosing trash or untrash.
Instructions
Move one or more messages to the trash or restore them. Pass a single id or an array of ids.
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": {
"ids": "<ids>",
"action": "<action>"
},
"name": "trashMessage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Message ID or array of message IDs | |
| action | Yes | 'trash' to move to trash, 'untrash' to restore |