create_hook
Create webhooks or MQTT hooks to receive events via HTTP or WebSocket, returning a unique hook ID and public URL for integration.
Instructions
Create a new webhook or MQTT hook. Returns the new hook ID and its public URL.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | The type of hook to create. Use 'mqtt' to create an MQTT source hook. | standard |
| deliveryMethod | No | How you want to receive events. Defaults to 'websocket' for easy testing. | websocket |
| callbackUrl | No | Required if deliveryMethod is 'http' or 'both'. | |
| metadata | No | Optional key-value metadata to attach to the hook (name, tags). | |
| sourceConfig | No | Configuration for MQTT source. Required if type is 'mqtt'. |