create_filter
Create Gmail filters to label, archive, or organize incoming mail by sender, subject, or search query.
Instructions
Creates a filter for mail that arrives from now on. To apply it to older mail too, run organize_emails with the same search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| query | No | Gmail search the mail must match | |
| account | Yes | Email address or label of the account (see list_accounts). | |
| subject | No | ||
| add_labels | No | Label names or IDs. System labels: INBOX, UNREAD, STARRED, IMPORTANT. | |
| skip_inbox | No | Must be true to remove INBOX, i.e. to hide matching mail from the inbox. Only set it when the user asked for that explicitly. | |
| remove_labels | No | Label names or IDs. System labels: INBOX, UNREAD, STARRED, IMPORTANT. |