Delete trigger
delete_triggerDelete a trigger of type url, click, or submit and return the id and type of the removed trigger. Its event stops being sent from that trigger once visitors' browsers pick up the new site configuration. Repeating an idempotency_key deletes once. Use it when the user wants to stop sending an event from that trigger.
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": {
"site_id": "<site_id>",
"idempotency_key": "<idempotency_key>",
"type": "<type>",
"trigger_id": "<trigger_id>"
},
"name": "delete_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of the stored trigger, as returned by list_triggers. | |
| site_id | Yes | Site to act on, as returned by list_sites. | |
| trigger_id | Yes | Trigger id as returned by list_triggers or create_trigger. | |
| idempotency_key | Yes | Unique string per intended change, such as a UUID. Repeating a key returns the first result instead of writing again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of the removed trigger. | |
| saved | Yes | Whether the request was applied. Always true on success. | |
| deleted | Yes | Whether the trigger was removed. Always true on success. | |
| trigger_id | Yes | Id of the removed trigger. |