create_filter
Automate email management by creating Gmail filters that sort, label, archive, or forward incoming messages based on sender, subject, size, and other criteria.
Instructions
Create a filter.
Criteria: from_address, to_address, subject, query (Gmail search syntax),
negated_query, has_attachment, exclude_chats, size + size_comparison
('larger'/'smaller').
Actions: add_labels/remove_labels (names or ids), forward_to, and the booleans
mark_read, archive (skip Inbox), star, mark_important, never_mark_important,
never_spam, trash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_address | No | ||
| to_address | No | ||
| subject | No | ||
| query | No | ||
| negated_query | No | ||
| has_attachment | No | ||
| exclude_chats | No | ||
| size | No | ||
| size_comparison | No | ||
| add_labels | No | ||
| remove_labels | No | ||
| forward_to | No | ||
| mark_read | No | ||
| archive | No | ||
| star | No | ||
| mark_important | No | ||
| never_mark_important | No | ||
| never_spam | No | ||
| trash | No | ||
| account | No | ||
| password | No |