triggers_create
Create a Google Tag Manager trigger by specifying its type, name, conditions, and parameters. Confirmation required before execution.
Instructions
[WRITE] Create a GTM trigger. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Trigger name. | |
| type | Yes | Trigger type (e.g. "click", "pageview", "customEvent", "domReady", "windowLoaded", "historyChange", "jsError", "scrollDepth", "elementVisibility", "timer", "youTubeVideo", "formSubmission", "linkClick"). | |
| notes | No | ||
| filter | No | Conditions that must be met for the trigger to fire ("fires on SOME …"). | |
| confirm | Yes | ||
| accountId | Yes | ||
| eventName | No | Custom event name (for customEvent type). | |
| parameter | No | Trigger settings as a parameter list — e.g. a YouTube Video trigger's captureStart/progressThresholdsPercent, a timer's interval/limit, scroll thresholds, element-visibility selector. | |
| containerId | Yes | ||
| waitForTags | No | Form/link trigger: a single boolean Parameter {type:"boolean", value:"true|false"} (no key). | |
| workspaceId | Yes | ||
| parentFolderId | No | ||
| autoEventFilter | No | Conditions for auto-event triggers (legacy; most scopes use `filter`). | |
| checkValidation | No | Form/link trigger: a single boolean Parameter (no key). | |
| customEventFilter | No | Used for custom event triggers. | |
| waitForTagsTimeout | No | Form/link trigger: a single template Parameter with the timeout ms. |