Tag Manager: List Versions
gtm_list_versionsList the versions of one Google Tag Manager container, newest first: version id, the name and note the publisher gave it, and how many tags, triggers and variables it held. Use it to see how often the container changes, what the recent publishes were about, which one is live, and whether a version was deleted. Google gives no publish timestamp on the list; the version name is what carries the date when the team writes one. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gtm_list_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Versions to return, newest first. Default 25, at most 100. | |
| container | No | The container: its public id (GTM-XXXXXXX), its name, or its API path from gtm_list_containers. May be left out when the connected login reaches exactly one container. | |
| include_deleted | No | Also list versions that were deleted. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| publicId | No | Public GTM-XXXXXXX id. | |
| versions | Yes | Versions, newest first. | |
| truncated | Yes | True when more versions exist than were returned. | |
| versionCount | Yes | Versions the container has (after the deleted filter). | |
| containerName | Yes | Container name. | |
| containerPath | Yes | API path of the container. | |
| liveVersionId | Yes | Id of the version live now. |