Create Webhook
create_webhookCreate an inbound webhook that turns GitHub or GitLab events into Push Notifications, Live Activities, and Lock Screen Widget values, following the rules you write. Call get_webhook_guide first for the provider, and list_webhooks to reuse an existing webhook. Returns the webhook and setup: the hook URL, a newly generated secret, the events to subscribe to, and a command per repository (gh api for GitHub, glab api for GitLab). Register the hook with those commands (the user needs admin or maintainer access), then check list_webhook_deliveries. Nothing reaches the iPhone until the service sends an event.
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": {
"label": "<label>",
"rules": "<rules>"
},
"name": "create_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Name shown to the user, such as GitHub: acme/api CI. | |
| rules | Yes | Rules, at most 25. Each picks events, optionally filters them with a CEL `if`, and runs one action: push_notification, dismiss_push_notification, live_activity, or widget_metric. Call get_webhook_guide first for the format and examples. | |
| provider | No | The service that sends the events: github or gitlab. | github |
| repositories | No | Repositories to connect now: GitHub owner/name or GitLab group/project (with any subgroups). The result includes the secret and a command for each. Leave out when none needs connecting. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| setup | Yes | ||
| webhook | Yes |