pages_get_content
Retrieve content from specific Webflow pages using the page ID. Specify locale, limit, or offset to filter and manage data extraction efficiently.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| localeId | No | ||
| offset | No | ||
| page_id | Yes |
Implementation Reference
- src/tools/pages.ts:141-156 (handler)The core handler function for the 'pages_get_content' tool. It fetches the page content structure using the WebflowClient's pages.getContent method with provided parameters and handles response formatting or error.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:122-140 (schema)Input schema for the 'pages_get_content' tool defined using Zod, specifying page_id (required string), and optional localeId, limit, offset parameters.{ 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." ), },
- src/tools/pages.ts:118-157 (registration)Registration of the 'pages_get_content' tool via server.tool() within the registerPagesTools function, including description, input schema, and handler implementation.// GET https://api.webflow.com/v2/pages/:page_id/dom server.tool( "pages_get_content", "Get the content structure and data for a specific page including all elements and their properties.", { 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); } } );