folders_list
Lists all Google Tag Manager folders in a workspace and automatically follows pagination so you can retrieve the complete folder set, with optional page limits and resume tokens.
Instructions
List all GTM folders in a workspace. Automatically follows pagination to return all folders.
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>"
},
"name": "folders_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 | ||
| pageToken | No | Continuation token to resume listing from a previous truncated result. | |
| containerId | Yes | ||
| workspaceId | Yes |