List Tag Manager workspaces
gtm_list_workspacesRetrieve Google Tag Manager workspaces for a container to review safe editing environments. Read-only operation uses container path or numeric account/container IDs to return workspace details.
Instructions
Lists workspaces in a container. Workspaces are the safe editing surface — all writes in this server operate on a workspace, never the live container. Accepts either a full container path or accountId + containerId (numeric internal ID). Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Full container path 'accounts/{a}/containers/{c}'. Alternative to supplying accountId and containerId separately. | |
| 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 | GTM container ID — the NUMERIC internal ID from gtm_list_containers, not the GTM-XXXXXXX public ID. |