manage_repository_hooks
Enable, disable, or configure repository hooks for controlling repository events with custom settings.
Instructions
Manage repository hook settings. Actions: "enable" (enable a hook), "disable" (disable a hook), "configure" (set hook settings).
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": {
"action": "<action>",
"repository": "<repository>",
"hookKey": "<hookKey>"
},
"name": "manage_repository_hooks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Operation to perform. | |
| hookKey | Yes | Hook key (e.g. 'com.atlassian.bitbucket.server.bitbucket-bundled-hooks:force-push-hook'). | |
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. | |
| settings | No | Hook settings object (for 'configure' action). | |
| repository | Yes | Repository slug. |