Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 22 lines 621 B view raw
1// Tool: get_api_info 2// Fetch the full API documentation from aesthetic.computer 3 4export const getAPIInfoTool = { 5 name: "get_api_info", 6 description: "Get the full API documentation for aesthetic.computer, including all available endpoints and examples.", 7 inputSchema: { 8 type: "object" as const, 9 properties: {}, 10 }, 11}; 12 13export async function getAPIInfo() { 14 const response = await fetch("https://aesthetic.computer/api/api-docs?format=json"); 15 16 if (!response.ok) { 17 throw new Error(`Failed to fetch API info: ${response.statusText}`); 18 } 19 20 const apiDocs = await response.json(); 21 return apiDocs; 22}