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.
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": {
"account": "<account>"
},
"name": "create_filter"
}
}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. |