Get container version
gtm_get_versionRetrieves a Google Tag Manager container version's entity counts and tag types, with optional compact lists of tags, triggers, and variables for auditing or comparison.
Instructions
One version: counts and tags-by-type; include_entities=true adds compact tag/trigger/variable lists. Container as public id (GTM-XXXXXXX, or a linked G-/AW- destination id) or API path accounts//containers/.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"container": "<container>",
"version_id": "<version_id>"
},
"name": "gtm_get_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container | Yes | ||
| version_id | Yes | ||
| include_entities | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||