list_websites
Retrieve a list of all websites in your workspace to manage and review your projects.
Instructions
List all websites in the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server/index.js:330-339 (registration)Registration of the 'list_websites' tool via server.tool() with name, description, empty schema, metadata options, and handler function.
server.tool( "list_websites", "List all websites in the workspace.", {}, { title: "List Websites", readOnlyHint: true, destructiveHint: false, openWorldHint: false }, async () => { const data = await apiCall("/v1/workspace/website/list", "GET"); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } ); - server/index.js:335-338 (handler)The handler function that calls the API endpoint /v1/workspace/website/list via GET and returns the formatted JSON response.
async () => { const data = await apiCall("/v1/workspace/website/list", "GET"); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } - server/index.js:112-123 (helper)Helper function used by the handler to make authenticated HTTP requests to the Lindo API.
async function apiCall(path, method, body) { const url = `${BASE_URL}${path}`; const res = await fetch(url, { method, headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json", }, ...(body ? { body: JSON.stringify(body) } : {}), }); return res.json(); } - server/index.js:333-333 (schema)Empty input schema - the tool takes no parameters.
{},