trash_email
Move an email message to the Deleted Items (trash) folder and return a shareable web-client link for the moved message.
Instructions
Move a message to the Deleted Items (trash) folder. Returns webUrl, the shareable native web-client link for the post-operation message; it may be omitted with webUrlUnavailableReason.
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>",
"id": "<id>"
},
"name": "trash_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message ID to move | |
| account | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| webUrl | No | ||
| trashed | Yes | ||
| webUrlUnavailableReason | No |