collections_get
Retrieve detailed schema and field definitions for a specific CMS collection in Webflow to understand its structure and data organization.
Instructions
Get detailed information about a specific CMS collection including its schema and field definitions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes | Unique identifier for the Collection. |
Implementation Reference
- src/tools/cms.ts:61-71 (handler)Handler function for the 'collections_get' tool. Fetches detailed information about a specific CMS collection using the WebflowClient API and formats the response.async ({ collection_id }) => { try { const response = await getClient().collections.get( collection_id, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } }
- src/tools/cms.ts:51-60 (schema)Input schema for the 'collections_get' tool, defining the required 'collection_id' parameter.{ title: "Get Collection", description: "Get detailed information about a specific CMS collection including its schema and field definitions.", inputSchema: z.object({ collection_id: z .string() .describe("Unique identifier for the Collection."), }), },
- src/tools/cms.ts:49-72 (registration)Registration of the 'collections_get' MCP tool, including schema and handler within the registerCmsTools function.server.registerTool( "collections_get", { title: "Get Collection", description: "Get detailed information about a specific CMS collection including its schema and field definitions.", inputSchema: z.object({ 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); } } );