gtm_create_version
Saves a Google Tag Manager workspace as a new container version without publishing and returns compiler errors for invalid configurations. Use it before checking GTM Preview and publishing.
Instructions
Save the workspace as a new container version (not live yet). Returns compiler errors if the configuration is invalid. Ask the user to check GTM Preview before 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": {
"workspace": "<workspace>",
"name": "<name>"
},
"name": "gtm_create_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| notes | No | ||
| workspace | Yes | Workspace path (accounts/…/containers/…/workspaces/…), or a container public ID like GTM-XXXX (uses its Default Workspace) |