GTM: Back up workspace
gtm_export_workspaceBack up a complete GTM workspace to a local JSON file, including unsaved changes GTM does not version yet, so you can restore tags, triggers, variables, and folders before risky edits.
Instructions
Backs up a complete workspace (all tags, triggers, variables, folders, templates, built-in variables) as a local JSON file — including unsaved changes that GTM itself does not version yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Short reason in the file name, e.g. 'before_relaunch' (default 'manual') | |
| accountId | Yes | GTM accountId (from gtm_list_accounts) | |
| containerId | Yes | GTM containerId, numeric | |
| workspaceId | Yes | Workspace ID (from gtm_list_workspaces / gtm_create_workspace) |