Update Filter
updateFilterModify an existing Thunderbird filter's name, conditions, actions, or enabled state by account and filter index, with confirmation required for sending-rule changes.
Instructions
Change an existing filter's properties, conditions or actions. Adding forward or reply actions, or changing a list that holds a sending rule (enabling or editing it included), is refused by default ("Always block"); with "Ask me each time" the call returns {status: "pending_user_confirmation", confirmationId} (follow up with listFilters, confirmation: true). Sending rules on outgoing mail, archiving or periodic runs (type 64, 128, 256) are always refused.
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": {
"accountId": "<accountId>",
"filterIndex": "<filterIndex>"
},
"name": "updateFilter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New filter name | |
| type | No | New filter type bitmask | |
| actions | No | Replace all actions (same format as createFilter) | |
| enabled | No | Enable/disable | |
| accountId | Yes | Account ID | |
| conditions | No | Replace all conditions (same format as createFilter) | |
| filterName | No | Its name (listFilters): refused if it no longer matches | |
| filterIndex | Yes | Filter index (from listFilters) |