export_container
Export a GTM workspace as structured JSON including tags, triggers, variables, folders, and built-ins. Read-only, intended for documentation, audits, or feeding data to other tools.
Instructions
Export a full GTM workspace summary as structured JSON. Returns all tags, triggers, variables, folders, and built-in variables. This is a read-only operation. Use this for documentation, auditing, or feeding container data to other tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | "full" = all fields, "summary" = key fields only, "names_only" = just names and IDs | summary |
| maxPages | No | Maximum API pages to fetch PER collection (default 50); the five collections are paged independently, so maxPages:2 costs up to 10 API pages. If more remain, the export is marked incomplete:true with truncatedCollections and per-collection nextPageTokens. | |
| accountId | Yes | ||
| containerId | Yes | ||
| workspaceId | Yes |