Skip to main content
Glama

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
NameRequiredDescriptionDefault
limitNo
localeIdNo
offsetNo
page_idYes

Implementation Reference

  • 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); } }
  • 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." ), },
  • 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); } } );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/webflow/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server