pages_get_metadata
Retrieve page metadata including SEO settings, Open Graph data, and publication status from Webflow sites to manage content visibility and optimization.
Instructions
Get metadata for a specific page including SEO settings, Open Graph data, and page status (draft/published).
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. |
Implementation Reference
- src/tools/pages.ts:66-95 (registration)Registration of the 'pages_get_metadata' tool using server.registerTool, including title, description, input schema, and the handler function."pages_get_metadata", { title: "Get Page Metadata", description: "Get metadata for a specific page including SEO settings, Open Graph data, and page status (draft/published).", 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." ), }), }, 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:81-94 (handler)The async handler function that executes the tool: fetches page metadata via WebflowClient.pages.getMetadata, formats the response or error.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:71-79 (schema)Zod inputSchema for the tool, validating page_id (string) and optional localeId (string).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." ), }),