Apply a mail filter to existing mail
apply_filterApplies a saved Proton Mail filter to existing mailbox messages by filter ID, enabling bulk organization of mail already received.
Instructions
Applies a saved Proton Mail filter to the mail that is already there, as "Apply filter to existing emails" does in Proton's settings. Proton works through the mail in the background, which on a large mailbox can take hours, and reports neither how many messages changed nor when it is done. By default the user agrees in a window of the browser extension first, and this call returns before they decide. Only a filter that passes the same rules as a proposal can be applied; any other is left to the user in Proton's settings. Takes the id from list_filters.
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": {
"id": "<id>"
},
"name": "apply_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The id of the saved filter, from list_filters. |