Tag Manager workspace changes
get_gtm_workspace_diffInspect drafted, unpublished GTM workspace changes, including added, modified, or deleted tags, triggers, and variables plus merge conflicts, before publishing.
Instructions
Show drafted-but-not-published changes in a GTM workspace.
Returns the list of entities (tags, triggers, variables) added, modified, or deleted relative to the live published version, plus any merge conflicts. Common cause of "I edited a tag but nothing happened" — the workspace was never published. is_clean=true means no pending changes and no conflicts.
Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
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_id": "<workspace_id>"
},
"name": "get_gtm_workspace_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | Numeric GTM workspace ID from list_gtm_workspaces. | |
| gtm_account_id | No | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. | |
| gtm_container_id | No | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||