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

---
title: "createCMSCollection"
sidebarTitle: "createCMSCollection"
description: "Creates a new CMS collection with optional field definitions. The collection will be managed by this plugin. After creation, you can add items using upsertCMSItem. Field types supported: string, numbe"
tag: "TOOL"
tagColor: "purple"
gridGap: 30
---

<Aside full>
  <RequestExample>
    ```json lines=false
    {
      "method": "tools/call",
      "params": {
        "name": "createCMSCollection",
        "arguments": {
          "name": "string",
          "fields": []
        }
      }
    }
    ```
  </RequestExample>
</Aside>

<MCPTool {...{"name":"createCMSCollection","description":"Creates a new CMS collection with optional field definitions.\n\nThe collection will be managed by this plugin. After creation, you can add items using upsertCMSItem.\n\nField types supported: string, number, boolean, color, date, image, link, formattedText, file, enum, collectionReference, multiCollectionReference.\n\nFor enum fields, provide cases array with id and name for each option.\nFor collectionReference/multiCollectionReference fields, provide the collectionId of the referenced collection.\nFor file fields, provide allowedFileTypes array with file extensions.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","description":"Name for the new CMS collection"},"fields":{"default":[],"description":"Field definitions for the collection","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique field identifier"},"name":{"type":"string","description":"Human-readable field name"},"type":{"type":"string","enum":["string","number","boolean","color","date","image","link","formattedText","file","enum","collectionReference","multiCollectionReference"],"description":"The data type for this field"},"required":{"description":"Whether the field is mandatory","type":"boolean"},"allowedFileTypes":{"description":"Allowed file extensions for file fields (e.g., [\"pdf\", \"txt\"])","type":"array","items":{"type":"string"}},"cases":{"description":"Enum options with id and name","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"collectionId":{"description":"Referenced collection ID for reference fields","type":"string"}},"required":["id","name","type"],"additionalProperties":false}}},"required":["name","fields"],"additionalProperties":false}}} />
