> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "getCMSCollections"
sidebarTitle: "getCMSCollections"
description: "Gets all CMS collections in the project with their field definitions. IMPORTANT: Call this tool FIRST before using any other CMS tools to understand the field structure and get proper field IDs. Retur"
tag: "TOOL"
tagColor: "purple"
gridGap: 30
---

<Aside full>
  <RequestExample>
    ```json lines=false
    {
      "method": "tools/call",
      "params": {
        "name": "getCMSCollections",
        "arguments": {}
      }
    }
    ```
  </RequestExample>
</Aside>

<MCPTool {...{"name":"getCMSCollections","description":"Gets all CMS collections in the project with their field definitions.\n\nIMPORTANT: Call this tool FIRST before using any other CMS tools to understand the field structure and get proper field IDs.\n\nReturns collections with:\n- ID, name, and management status (user-managed or plugin-managed)\n- Field definitions with field IDs, names, types, and requirements\n- Field types include: string, number, boolean, color, date, image, link, formattedText, file, enum, collectionReference, multiCollectionReference\n\nEach field includes:\n- id: The field identifier (e.g., \"j11rZL4rT\") - use this as the key in fieldData\n- name: Human-readable field name\n- type: The data type for this field\n- required: Whether the field is mandatory (when applicable)\n- allowedFileTypes: Array of allowed file extensions for file fields (e.g., [\"pdf\", \"txt\"])\n- cases: Array of enum options with id and name for enum fields\n- collectionId: Referenced collection ID for reference fields\n- Additional legacy properties like options, defaultValue, multiline when applicable\n\nTo create a new CMS collection, use the createCMSCollection tool.\n\nYou cannot update or add fields to existing user-managed collections, ask the user to do so. For plugin-managed collections created via createCMSCollection, you can set fields during creation.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true}}} />
