gtm_publish
Publish an approved Google Tag Manager container version to make changes live on your website. Use only after the version has been reviewed and explicitly approved for release.
Instructions
Publish a container version so it goes LIVE on the website. Only call after the user has reviewed the changes (ideally in GTM Preview) and explicitly approved publishing.
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": {
"versionPath": "<versionPath>"
},
"name": "gtm_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| versionPath | Yes | accounts/…/containers/…/versions/N from gtm_create_version |