Update Webhook
update_webhookChange a webhook that an agent created: replace its rules, rename it, turn it on or off, or connect more repositories. rules replaces the whole list, so send every rule to keep (read them with list_webhooks). When repositories is set, the result includes setup with the secret and commands for them. If the events change (events_changed), update each connected repository's hook with the update_events command.
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": {
"webhook_id": "<webhook_id>"
},
"name": "update_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | New name shown to the user. | |
| rules | No | 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. | |
| enabled | No | false stops delivery without deleting the webhook; true turns it back on. | |
| webhook_id | Yes | The webhook_id from list_webhooks or create_webhook. | |
| 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 | No | ||
| webhook | Yes |