create_rule
Create a new Mail rule with conditions and actions to automatically process incoming messages. Backup is created before applying.
Instructions
Create a new Mail.app rule. A timestamped backup of SyncedRules.plist is made before writing. Mail.app may need to be restarted for the rule to take effect.
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": {
"name": "<name>",
"conditions": "<conditions>",
"actions": "<actions>"
},
"name": "create_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the rule. | |
| actions | Yes | At least one action should be set. | |
| match_all | No | true = ALL conditions must match (AND); false = ANY (OR). | |
| conditions | Yes | One or more match conditions. |