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

# List Workspaces

> Lists workspaces in a Google Tag Manager container

Lists workspaces in a Google Tag Manager container. Workspaces are where tags, triggers, and variables are edited before being versioned and published. Supports filtering by name or workspace ID.

| | |
| - | - |
| **App** | Google Tag Manager |
| **Operation ID** | `gtm_list_workspaces` |
| **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 workspaces should be listed. |
| `filters` | array of FilterItem | No | - | Optional filters to apply when retrieving workspaces. The available fields to filter by are: - workspaceId: Filter by workspace ID - name: Filter by workspace name Filters are combined using AND logic. If you want to use OR logic, use relevant operators like REGEXP\_MATCH or IN\_LIST. |
| `limit` | integer | No | `100` | Maximum number of workspaces to return. Default: 100. |

### FilterItem

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `field` | string or SelectableOption | Yes | - | The field to filter on, must be one of the current selected metrics or dimensions. |
| `operator` | string | Yes | - | The operator to use for filtering. Must be one of the supported values. Use REGEXP\_MATCH to search/filter by multiple OR values like '.*(summer\|holiday).*' |
| `value` | string | Yes | - | The value to filter by, always as a string: text, a number, or a regex. For IN\_LIST and NOT\_IN\_LIST, pass the values as one comma-separated string such as 'a,b,c', not as an array. For regex values, escape backslashes once in the JSON string: write \b for a word boundary, not \b. |

### SelectableOption

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `value` | string | Yes | - | |
| `label` | string | Yes | - | |

## Output

**Type**: `List[Dict]`

Returns the raw list of GTM workspaces as provided by the Tag Manager API.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.