containers_list
Lists Google Tag Manager containers in a specified GTM account and automatically follows pagination to return every container, with page-token support for truncated results.
Instructions
List all GTM containers within a GTM account. Automatically follows pagination to return all containers.
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>"
},
"name": "containers_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxPages | No | Maximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken. | |
| accountId | Yes | The GTM account ID. | |
| pageToken | No | Continuation token to resume listing from a previous truncated result. |