pages_get_content
Retrieve structured content and data for a specific Webflow page, including all elements and their properties, to analyze or integrate page information.
Instructions
Get the content structure and data for a specific page including all elements and their properties.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Unique identifier for the page. | |
| localeId | No | Unique identifier for a specific locale. Applicable when using localization. | |
| limit | No | Maximum number of records to be returned (max limit: 100) | |
| offset | No | Offset used for pagination if the results have more than limit records. |
Implementation Reference
- src/tools/pages.ts:134-178 (registration)Registration of the 'pages_get_content' tool, including input schema, description, and handler function."pages_get_content", { title: "Get Page Content", description: "Get the content structure and data for a specific page including all elements and their properties.", inputSchema: z.object({ page_id: z.string().describe("Unique identifier for the page."), localeId: z .string() .optional() .describe( "Unique identifier for a specific locale. Applicable when using localization." ), limit: z .number() .optional() .describe( "Maximum number of records to be returned (max limit: 100)" ), offset: z .number() .optional() .describe( "Offset used for pagination if the results have more than limit records." ), }), }, async ({ page_id, localeId, limit, offset }) => { try { const response = await getClient().pages.getContent( page_id, { localeId, limit, offset, }, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } } );
- src/tools/pages.ts:161-176 (handler)The handler function that executes the tool logic by calling Webflow API to get page content.async ({ page_id, localeId, limit, offset }) => { try { const response = await getClient().pages.getContent( page_id, { localeId, limit, offset, }, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } }
- src/tools/pages.ts:139-159 (schema)Zod input schema defining parameters for the pages_get_content tool: page_id (required), localeId, limit, offset (optional).inputSchema: z.object({ page_id: z.string().describe("Unique identifier for the page."), localeId: z .string() .optional() .describe( "Unique identifier for a specific locale. Applicable when using localization." ), limit: z .number() .optional() .describe( "Maximum number of records to be returned (max limit: 100)" ), offset: z .number() .optional() .describe( "Offset used for pagination if the results have more than limit records." ), }),