> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Container Snippet

> Fetches the install code snippet for a Google Tag Manager web or AMP container, ready to paste into a site's HTML

Fetches the install code snippet for a Google Tag Manager web or AMP container, ready to paste into a site's HTML.

|                      |                             |
| -------------------- | --------------------------- |
| **App**              | Google Tag Manager          |
| **Operation ID**     | `gtm_get_container_snippet` |
| **Type**             | Action                      |
| **Connection**       | `gtm` (required)            |
| **Credits per run**  | 1                           |
| **Agent / MCP tool** | Yes                         |

## Inputs

| Field       | Type           | Required | Default | Description                                                                                                                                       |
| ----------- | -------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`   | DynamicAccount | Yes      | -       | Select the Google Tag Manager account.                                                                                                            |
| `container` | DynamicAccount | Yes      | -       | Select the container whose install snippet should be fetched. Meaningful for web and AMP containers; server containers are installed differently. |

## Output

**Type**: `Dict`

Returns the container install snippet as provided by the Tag Manager API.
