> ## 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.

# Lookup Container

> Finds a Google Tag Manager container by its public tag ID (GTM-XXXXXX) or by a linked Google tag destination ID (e.g

Finds a Google Tag Manager container by its public tag ID (GTM-XXXXXX) or by a linked Google tag destination ID (e.g. a GA4 measurement ID), without knowing which account owns it.

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

## Inputs

| Field            | Type   | Required | Default | Description                                                                                                                                   |
| ---------------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `tag_id`         | string | No       | -       | Look up by the container's public tag ID, e.g. GTM-ABC123. Provide either tag\_id or destination\_id, not both.                               |
| `destination_id` | string | No       | -       | Look up by a linked Google tag destination ID, e.g. a GA4 measurement ID like G-XXXXXXX. Provide either tag\_id or destination\_id, not both. |

## Output

**Type**: `Dict`

Returns the matching container as provided by the Tag Manager API, including its accountId.
