List variables in a workspace
gtm_list_variablesLists user-defined variables in a Tag Manager workspace, showing their type and parameters. Use it to retrieve custom variable definitions for a given workspace.
Instructions
Lists user-defined variables in a Tag Manager workspace with their type and parameters. Note this returns user-defined variables only — built-in variables are a separate collection. Accepts a full workspace path or accountId + containerId + workspaceId. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Full workspace path 'accounts/{a}/containers/{c}/workspaces/{w}'. Alternative to the three IDs. | |
| limit | No | Maximum rows to return. Defaults to 25 to protect the context window. Prefer narrowing the query over raising this. | |
| accountId | No | GTM account ID. Ignored if `path` is supplied. | |
| pageToken | No | Opaque token from a previous response's `nextPageToken`, to fetch the following page. Paging is manual so the caller controls cost. | |
| containerId | No | Numeric internal container ID, not GTM-XXXXXXX. | |
| workspaceId | No | Workspace ID from gtm_list_workspaces. |