folders_entities
Lists all tags, triggers, and variables in a specified Google Tag Manager folder, automatically following pagination to return every entity across API pages.
Instructions
List all entities (tags, triggers, variables) within a specific GTM folder. Automatically follows pagination to return all entities.
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>",
"workspaceId": "<workspaceId>",
"folderId": "<folderId>"
},
"name": "folders_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folderId | Yes | ||
| maxPages | No | Maximum number of API pages to fetch (default 50). GTM returns one nextPageToken for tags, triggers and variables together, so this bounds the whole walk rather than each collection. | |
| accountId | Yes | ||
| pageToken | No | Continuation token to resume listing from a previous truncated result. | |
| containerId | Yes | ||
| workspaceId | Yes |