Enable built-in variables (🟡 write)
gtm_enable_built_in_variablesEnables built-in GTM variables by API type, such as pageUrl, clickText, and formId, with a dry-run preview to verify changes before applying.
Instructions
Enable built-in variables by API type (pageUrl, pagePath, pageHostname, referrer, event, clickElement, clickClasses, clickId, clickUrl, clickText, formId, scrollDepthThreshold, …). Already-enabled types are harmless. dry_run=true previews.
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": {
"container": "<container>",
"types": "<types>"
},
"name": "gtm_enable_built_in_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | Yes | ||
| dry_run | No | ||
| container | Yes | ||
| workspace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||