sites_list
Retrieve a list of all Webflow sites accessible to your account, including site IDs, names, and last published dates.
Instructions
List all sites accessible to the authenticated user. Returns basic site information including site ID, name, and last published date.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/sites.ts:20-27 (handler)The inline handler function for the 'sites_list' tool. It calls the WebflowClient.sites.list() method to fetch all accessible sites and formats the response or error.async () => { try { const response = await getClient().sites.list(requestOptions); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } }
- src/tools/sites.ts:18-18 (schema)Input schema for the 'sites_list' tool, which takes no parameters (empty object).inputSchema: z.object({}),
- src/tools/sites.ts:12-28 (registration)Registers the 'sites_list' tool on the MCP server within the registerSiteTools function, specifying name, metadata, input schema, and handler.server.registerTool( "sites_list", { title: "List Sites", description: "List all sites accessible to the authenticated user. Returns basic site information including site ID, name, and last published date.", inputSchema: z.object({}), }, async () => { try { const response = await getClient().sites.list(requestOptions); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } } );
- src/mcp.ts:53-53 (registration)Top-level call to registerSiteTools during MCP server tools registration, which includes the 'sites_list' tool.registerSiteTools(server, getClient);