API Reference

Google Tag Manager / API Reference

gtm_enable_builtin_variable

Tag Manager tool. Enable one or more built-in variables in a GTM workspace. Common types: PAGE_URL, PAGE_PATH, PAGE_HOSTNAME, CLICK_URL, CLICK_TEXT, CLICK_ID, CLICK_CLASSES, CLICK_TARGET, CLICK_ELEMENT, FORM_URL, FORM_ID, FORM_CLASSES, FORM_TARGET, FORM_ELEMENT, FORM_TEXT, SCROLL_DEPTH_THRESHOLD, SCROLL_DEPTH_DIRECTION, SCROLL_DEPTH_UNITS, VIDEO_URL, VIDEO_TITLE, VIDEO_DURATION, VIDEO_PERCENT, VIDEO_STATUS. Args: account_id: The GTM account ID. container_id: The GTM container ID. workspace_id: The GTM workspace ID. variable_types: JSON array of built-in variable type strings to enable.

This is a write tool: it enables builtin variable in your Google Tag Manager account. Claude asks you to confirm before it runs.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Enable builtin variable in my Google Tag Manager account for [container id], [workspace id], [variable types].

It takes 4 required and 0 optional parameters.

Parameters

ParameterTypeRequiredDescription
account_idstringYesAccount Id
container_idstringYesContainer Id
workspace_idstringYesWorkspace Id
variable_typesstringYesVariable Types

Related Google Tag Manager tools

Before you can call it

This tool needs a connected Google Tag Manager account. The Google Tag Manager connect guide covers how to authorize it and what it unlocks, and the quickstart gets a client talking to the server in about five minutes.

Start free — 30 tool calls a month

No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.