List Tag Manager variables
list_gtm_variablesList Google Tag Manager variables, including custom and enabled built-ins, from live containers or unpublished workspaces to verify triggers reference active variables.
Instructions
List GTM variables — both custom and enabled built-in.
Without workspace_id both come from the live container version (the Default Workspace supplies the built-ins only when the live version lists none; built_in_source names where they came from). With workspace_id both come from that workspace's unpublished state. Variables matter because triggers reference them: if a trigger uses {{Form ID}} but Form ID isn't enabled, the trigger never matches.
Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | No | Workspace to read (see list_gtm_workspaces), which includes drafted changes that are not published yet. Empty reads the live (published) container version. | |
| gtm_account_id | No | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. | |
| gtm_container_id | No | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||