block_sender
Block a sender by creating a Gmail filter, optionally trashing existing mail from that sender to reduce inbox clutter.
Instructions
Block a sender by creating a Gmail filter (same mechanism as Gmail's native "Block" button). Optionally also trashes existing mail from that sender.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | What to do with matching mail. "trash" (default) mirrors Gmail's Block button. | trash |
| sender | Yes | Email address (e.g. "spam@foo.com"), domain ("@foo.com"), or Gmail search fragment ("from:x subject:promo"). | |
| account | Yes | Account id. | |
| also_trash_existing | No | If true (default), retroactively trashes up to 100 existing messages from this sender. |