collections_list
Retrieve a list of collections associated with a specific Webflow site by providing the site ID. Use this tool to manage and organize site content efficiently.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes |
Implementation Reference
- src/tools/cms.ts:25-42 (registration)MCP server.tool registration for the 'collections_list' tool, including inline input schema, description, and handler function that fetches CMS collections list from Webflow API using the provided site_id.server.tool( "collections_list", "List all CMS collections in a site. Returns collection metadata including IDs, names, and schemas.", { 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); } } );
- src/tools/cms.ts:31-41 (handler)The inline async handler function for 'collections_list' tool. It uses WebflowClient to list collections for the given site_id, formats the response, or handles errors.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:28-30 (schema)Input schema for 'collections_list' tool: requires a 'site_id' string parameter.{ site_id: z.string().describe("Unique identifier for the Site."), },