Publish Version
publish_versionPublish a Google Tag Manager container version to production, making it live immediately for all visitors. Verify the version first, as reverting requires publishing an earlier version.
Instructions
Publish a container version to production.
This takes effect on the live site immediately, for every visitor, with no staged rollout. The only way back is to publish an earlier version over the top. Confirm the version is the intended one before calling.
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": {
"account_id": "<account_id>",
"container_id": "<container_id>",
"version_id": "<version_id>"
},
"name": "publish_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Numeric Tag Manager account ID. | |
| version_id | Yes | Numeric container version ID. | |
| fingerprint | No | Fingerprint from a previous read. When given, the publish fails if the version changed in the meantime. | |
| container_id | Yes | Numeric container ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||