containers_snippet
Retrieves the Google Tag Manager installation snippet (HTML/JS tagging code) for a specified container so you can add GTM tagging to your site.
Instructions
Get the GTM installation snippet (HTML/JS tagging code) for a 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": {
"accountId": "<accountId>",
"containerId": "<containerId>"
},
"name": "containers_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | The GTM account ID. | |
| containerId | Yes | The GTM container ID. |