add_notification_rule
Creates a notification rule that forwards matching Android notifications to this chat and applies your instruction, after showing the rule for approval.
Instructions
Have Buddy bring a notification into this chat whenever one matching arrives, with an instruction: "when Sam writes on WhatsApp, answer that I'm driving". Buddy shows the user the rule on a card and adds it only if they approve. Each match then comes here as a new message to you, quoting the notification, and you work as a notification rule's run does: phone tools with cards before anything risky, no shell, files or web, Trust doesn't apply. The rule starts on asking before acting; the user changes or deletes it in Settings > Safety and approvals > Notification rules. For a time instead of a notification, use schedule_message.
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": {
"app": "<app>",
"instruction": "<instruction>"
},
"name": "add_notification_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app the notification comes from: its name or package | |
| from | No | Optional: only from these senders or chats, comma-separated | |
| words | No | Optional: only notifications with one of these words, comma-separated | |
| instruction | Yes | What to do when it comes, as a message to yourself |