collections_list
Retrieve all CMS collections from a Webflow site to view collection metadata, IDs, names, and schemas for content management.
Instructions
List all CMS collections in a site. Returns collection metadata including IDs, names, and schemas.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | Unique identifier for the Site. |
Implementation Reference
- src/tools/cms.ts:35-45 (handler)The handler function for the 'collections_list' tool. It uses the WebflowClient to list collections for the given site_id and formats the response or error.async ({ site_id }) => { try { const response = await getClient().collections.list( site_id, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } }
- src/tools/cms.ts:31-33 (schema)Input schema for the 'collections_list' tool, requiring a site_id string parameter.inputSchema: z.object({ site_id: z.string().describe("Unique identifier for the Site."), }),
- src/tools/cms.ts:25-46 (registration)Registration of the 'collections_list' tool with the MCP server, including title, description, input schema, and handler function.server.registerTool( "collections_list", { title: "List Collections", description: "List all CMS collections in a site. Returns collection metadata including IDs, names, and schemas.", inputSchema: z.object({ site_id: z.string().describe("Unique identifier for the Site."), }), }, async ({ site_id }) => { try { const response = await getClient().collections.list( site_id, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } } );