Inputs
Output
Type:Dict
Returns the created template as provided by the Tag Manager API.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Creates a template in a Google Tag Manager workspace from a raw resource payload
| App | Google Tag Manager |
| Operation ID | gtm_create_template |
| Type | Action |
| Connection | gtm (required) |
| Credits per run | 1 |
| Agent / MCP tool | Yes |
| Requires approval | Yes (write operation) |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
account | DynamicAccount | Yes | - | Select the Google Tag Manager account. |
container | DynamicAccount | Yes | - | Select the container. |
workspace | DynamicAccount | Yes | - | Select the workspace. |
template_payload | object or string | Yes | - | Full CustomTemplate resource (object or JSON string) matching the Google Tag Manager API v2 CustomTemplate spec. Must include name; templateData holds the exported template (.tpl) text. To install a community template instead, use gtm_import_template_from_gallery. |
Dict
Returns the created template as provided by the Tag Manager API.