open_tracked_gtm_pack
Builds web and server Google Tag Manager containers for a shop, returns a summary, and can write both JSON files to a folder for import via Admin > Import Container.
Instructions
Build the two Google Tag Manager containers (web and server) for a shop, the same ones the Setup wizard gives. Returns a summary. With outputDir (an absolute folder) the two JSON files are written there, ready for Admin > Import Container.
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": {
"containerId": "<containerId>",
"options": "<options>"
},
"name": "open_tracked_gtm_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | Yes | ||
| outputDir | No | Absolute path of a folder to write the two files into. | |
| containerId | Yes | The Open Tracked container id (the number in its address). |