gtm_create_version
Create a new GTM container version from your current workspace to save changes without publishing. Returns the new version ID and compiler errors.
Instructions
Freeze the current workspace into a new container version. Returns the new containerVersion (with containerVersionId) plus any compiler errors. This does NOT publish; use gtm_publish_version next.
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>",
"workspace_id": "<workspace_id>",
"name": "<name>"
},
"name": "gtm_create_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| notes | No | ||
| account_id | Yes | ||
| container_id | Yes | ||
| workspace_id | Yes |