sites_get
Retrieve detailed information about a specific Webflow site using its unique site ID to manage or integrate site data effectively.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes |
Implementation Reference
- src/tools/sites.ts:32-39 (handler)Handler function that executes the sites_get tool logic by calling Webflow API to get site details.async ({ site_id }) => { try { const response = await getClient().sites.get(site_id, requestOptions); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } }
- src/tools/sites.ts:29-31 (schema)Zod input schema for the sites_get tool, defining the required site_id parameter.{ site_id: z.string().describe("Unique identifier for the site."), },
- src/tools/sites.ts:26-40 (registration)Direct registration of the sites_get tool using McpServer.tool() method.server.tool( "sites_get", "Get detailed information about a specific site including its settings, domains, and publishing status.", { site_id: z.string().describe("Unique identifier for the site."), }, async ({ site_id }) => { try { const response = await getClient().sites.get(site_id, requestOptions); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } } );
- src/mcp.ts:53-53 (registration)High-level registration call that invokes the site tools registration, including sites_get.registerSiteTools(server, getClient);