pages_list
Retrieve a list of pages for a specific Webflow site by providing the site ID. Use parameters like limit, offset, and locale to refine the results for your needs.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| localeId | No | ||
| offset | No | ||
| site_id | Yes |
Implementation Reference
- src/tools/pages.ts:40-55 (handler)Handler function for the 'pages_list' tool. Calls WebflowClient.pages.list with provided parameters and handles response or error.async ({ site_id, localeId, limit, offset }) => { try { const response = await getClient().pages.list( site_id, { localeId, limit, offset, }, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } }
- src/tools/pages.ts:19-39 (schema)Zod input schema for the 'pages_list' tool parameters: site_id (required), localeId, limit, offset (optional).{ site_id: z .string() .describe("The site’s unique ID, used to list its pages."), 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:16-56 (registration)MCP server.tool registration for 'pages_list', including name, description, input schema, and handler function.server.tool( "pages_list", "List all pages within a site. Returns page metadata including IDs, titles, and slugs.", { site_id: z .string() .describe("The site’s unique ID, used to list its pages."), 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 ({ site_id, localeId, limit, offset }) => { try { const response = await getClient().pages.list( site_id, { localeId, limit, offset, }, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } } );