List Websites
list_websitesRetrieve a list of all websites within the current workspace. Use this to view available sites before creating or managing pages and content.
Instructions
List all websites in the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server/index.js:378-381 (handler)Handler function for 'list_websites' tool. Makes a GET request to /v1/workspace/website/list and returns the result as formatted JSON text content.
async () => { const data = await apiCall("/v1/workspace/website/list", "GET"); return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] }; } - server/index.js:372-376 (schema)Schema definition for 'list_websites'. No inputs required (empty inputSchema), marked as read-only.
{ title: "List Websites", description: "List all websites in the workspace.", inputSchema: {}, annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false }, - server/index.js:370-382 (registration)Registration of the 'list_websites' tool via server.registerTool(). All tool logic is inline.
server.registerTool( "list_websites", { title: "List Websites", description: "List all websites in the workspace.", inputSchema: {}, annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false }, }, async () => { const data = await apiCall("/v1/workspace/website/list", "GET"); return { content: [{ type: "text", text: JSON.stringify(data?.result ?? data, null, 2) }] }; } );