collections_get
Retrieve data from a specific collection in Webflow by providing the collection ID. Simplify accessing and managing structured content for your projects.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes |
Implementation Reference
- src/tools/cms.ts:54-63 (handler)The handler function that executes the logic for the 'collections_get' tool, fetching collection details via WebflowClient and formatting the response.try { const response = await getClient().collections.get( collection_id, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } }
- src/tools/cms.ts:49-52 (schema)Input schema for the 'collections_get' tool, defining the required 'collection_id' parameter using Zod.collection_id: z .string() .describe("Unique identifier for the Collection."), },
- src/tools/cms.ts:46-65 (registration)Registration of the 'collections_get' tool in the MCP server using server.tool(), including name, description, input schema, and handler."collections_get", "Get detailed information about a specific CMS collection including its schema and field definitions.", { collection_id: z .string() .describe("Unique identifier for the Collection."), }, async ({ collection_id }) => { try { const response = await getClient().collections.get( collection_id, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } } );