Mail: Empty folder
mail_empty_folderEmpty a Trash or Spam folder in one go. Refused for any other folder, so an inbox cannot be emptied by this. Removes what the local index knows about and reports the count. There is no undo. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"folder": "<folder>"
},
"name": "mail_empty_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | A Trash/Spam folder name from mail_list_folders. | |
| mailbox | No | Which mailbox (label). Required if you have several. |