export_container
Exports a GTM workspace summary as structured JSON, including tags, triggers, variables, folders, and built-in variables for documentation, auditing, or data reuse.
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.
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": {
"accountId": "<accountId>",
"containerId": "<containerId>",
"workspaceId": "<workspaceId>"
},
"name": "export_container"
}
}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 |