pages_get_metadata
Extract metadata from Webflow pages by specifying a page ID. Use this tool to retrieve structured data for efficient content management and analysis.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localeId | No | ||
| page_id | Yes |
Implementation Reference
- src/tools/pages.ts:71-84 (handler)The handler function that executes the tool logic by calling the Webflow API to retrieve metadata for a specific page.async ({ page_id, localeId }) => { try { const response = await getClient().pages.getMetadata( page_id, { localeId, }, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } }
- src/tools/pages.ts:62-70 (schema)Input schema defining parameters for the pages_get_metadata tool: page_id (required string) and localeId (optional string).{ 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." ), },
- src/tools/pages.ts:59-85 (registration)Registration of the pages_get_metadata tool on the MCP server, including name, description, input schema, and handler function.server.tool( "pages_get_metadata", "Get metadata for a specific page including SEO settings, Open Graph data, and page status (draft/published).", { 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." ), }, async ({ page_id, localeId }) => { try { const response = await getClient().pages.getMetadata( page_id, { localeId, }, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } } );