yahoo_empty_folder
Permanently delete all messages in a Yahoo Mail folder like Bulk or Trash. Defaults to a dry run returning the count that would be purged; pass confirm=True to actually empty it.
Instructions
PERMANENTLY delete ALL messages in a folder (mark \Deleted + EXPUNGE).
Intended for Bulk (spam) and Trash. Irreversible.
Safety: with confirm=False (default) NOTHING is deleted — it returns the count that WOULD be purged. Pass confirm=True to actually empty the folder.
Args: folder: Folder to empty (e.g. "Bulk", "Trash") confirm: Must be True to actually delete. Default False = dry run. account: Account key from accounts.json, e.g. "personal" or "work". Default: the account that file marks as default.
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": "yahoo_empty_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | ||
| account | No | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||