Tag Manager: Create trigger
gtm_create_triggerNeuen GTM Trigger anlegen (trigger_type z.B. pageview, click, customEvent). conditions: optionales Dict, wird in den Trigger-Body gemerged (z.B. {"customEventFilter": [...]} oder {"filter": [...]}). Erst nach gtm_create_version + gtm_publish_version live. workspace_id: GTM-Workspace (aus gtm_list_workspaces). workspace_id ist rein numerisch, sonst {"error":"invalid_id"}. workspace: Slug des Kunden-Workspace (optional bei nur einem Workspace).
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": {
"workspace_id": "<workspace_id>",
"name": "<name>",
"trigger_type": "<trigger_type>"
},
"name": "gtm_create_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| workspace | No | ||
| conditions | No | ||
| trigger_type | Yes | ||
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||