create_filter
Create a Gmail filter using custom match criteria and automated actions like labeling, removing labels, or forwarding.
Instructions
Create a new Gmail filter with custom criteria and actions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Actions to perform (addLabelIds, removeLabelIds, forward) | |
| criteria | Yes | Criteria for matching emails (from, to, subject, query, negatedQuery, hasAttachment, excludeChats, size, sizeComparison) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |