Publish GTM Version
gtm_publish_versionPublish a specific GTM container version to make it live for all visitors, replacing the current live configuration.
Instructions
Publish a container version, making it the LIVE version served to all visitors. This replaces the currently live container configuration.
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": "gtm_publish_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | The GTM account ID | |
| version_id | Yes | The version ID to publish | |
| container_id | Yes | The GTM container ID |