templates_revert
Revert a GTM template in a workspace to its last saved container version. Discard unconfirmed changes with a single operation.
Instructions
[WRITE] Revert workspace changes to a GTM template back to its last container-version state. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | The GTM account ID. | |
| containerId | Yes | The GTM container ID. | |
| workspaceId | Yes | The GTM workspace ID. | |
| templateId | Yes | The templates ID to revert. | |
| fingerprint | No | Current fingerprint (for optimistic locking). | |
| confirm | Yes | Must be true to confirm this write operation. |