{"openapi":"3.1.0","info":{"title":"Sloosh for agents","version":"1.0.0","description":"Sloosh makes images and video: Studio, reusable Spaces and Spacelab canvases. Agents read the site as Markdown here and act in a workspace through the Sloosh MCP server, which signs in with OAuth 2.0. There is no REST API or API key yet.\n\nVersioning: the MCP server is versioned by the MCP protocol itself. A client picks the protocol version at `initialize` and sends it on every later request in the `MCP-Protocol-Version` header. A tool that is retired is announced in the MCP docs (/docs/mcp) before it is removed."},"externalDocs":{"description":"Sloosh MCP docs","url":"https://sloosh.ai/docs/mcp"},"servers":[{"url":"https://sloosh.ai"}],"paths":{"/llms.txt":{"get":{"operationId":"getSiteIndex","summary":"Site index for agents","description":"The llms.txt index: the site's sections, every public space's agents.md, the templates listings and the docs.","security":[],"responses":{"200":{"description":"Markdown index (served as text/plain).","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/llms-full.txt":{"get":{"operationId":"getAllDocs","summary":"Every docs page in one file","description":"All Sloosh docs pages as one Markdown file.","security":[],"responses":{"200":{"description":"Markdown (served as text/plain).","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/docs.md":{"get":{"operationId":"getDocsHome","summary":"Docs home as Markdown","description":"The docs home page with links to every docs page.","security":[],"responses":{"200":{"description":"Markdown.","content":{"text/markdown":{"schema":{"type":"string"}}}}}}},"/docs/{slug}.md":{"get":{"operationId":"getDocsPage","summary":"One docs page as Markdown","description":"A docs page by its slug, as listed in /docs.md (for example `mcp`).","security":[],"parameters":[{"name":"slug","in":"path","required":true,"description":"The page's slug.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]*$"}}],"responses":{"200":{"description":"Markdown.","content":{"text/markdown":{"schema":{"type":"string"}}}},"404":{"description":"No such page, or not public."}}}},"/spaces/{spaceKey}/agents.md":{"get":{"operationId":"getSpaceAgentsMd","summary":"How an agent runs a public space","description":"A public space's agents.md: what it makes, the inputs it takes, what a run costs and how to run it over MCP.","security":[],"parameters":[{"name":"spaceKey","in":"path","required":true,"description":"The space's slug, as listed in /llms.txt.","schema":{"type":"string"}}],"responses":{"200":{"description":"Markdown (served as text/plain).","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"No such page, or not public."}}}},"/auth.md":{"get":{"operationId":"getAuthMd","summary":"How an agent gets access","description":"OAuth 2.0 with PKCE through the MCP server, the scopes and the daily limit. No API keys.","security":[],"responses":{"200":{"description":"How an agent gets access.","content":{"text/markdown":{"schema":{"type":"string"}}}}}}},"/.well-known/api-catalog":{"get":{"operationId":"getApiCatalog","summary":"API catalog","description":"RFC 9727 linkset: the MCP endpoint, this document and the MCP docs.","security":[],"responses":{"200":{"description":"API catalog.","content":{"application/linkset+json":{"schema":{"type":"string"}}}}}}},"/.well-known/oauth-protected-resource":{"get":{"operationId":"getProtectedResource","summary":"MCP protected-resource metadata","description":"RFC 9728 metadata for the MCP server: its authorization server and scopes.","security":[],"responses":{"200":{"description":"MCP protected-resource metadata.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/.well-known/mcp/server-card.json":{"get":{"operationId":"getMcpServerCard","summary":"MCP server card","description":"The MCP server's name, endpoint, transport, capabilities and sign-in.","security":[],"responses":{"200":{"description":"MCP server card.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/.well-known/agent-skills/index.json":{"get":{"operationId":"getAgentSkills","summary":"Agent skills index","description":"The skills an agent can load, each with its SHA-256 digest.","security":[],"responses":{"200":{"description":"Agent skills index.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/.well-known/agent-skills/use-sloosh/SKILL.md":{"get":{"operationId":"getUseSlooshSkill","summary":"The use-sloosh skill","description":"How to connect to the MCP server and run spaces, as a SKILL.md.","security":[],"responses":{"200":{"description":"The use-sloosh skill.","content":{"text/markdown":{"schema":{"type":"string"}}}}}}},"/.well-known/ai-catalog.json":{"get":{"operationId":"getAiCatalog","summary":"AI catalog","description":"An ai-catalog of the MCP server, this document and llms.txt.","security":[],"responses":{"200":{"description":"AI catalog.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/mcp":{"servers":[{"url":"https://mcp.sloosh.ai","description":"Sloosh MCP server"}],"post":{"operationId":"callMcp","summary":"Call the Sloosh MCP server","description":"MCP over Streamable HTTP. Send JSON-RPC 2.0 messages (initialize, tools/list, tools/call). Paid tools quote first and run only within the workspace's daily limit.","security":[{"slooshOAuth":["spacelab:read","spacelab:author","spacelab:execute","user:org:read","offline_access"]}],"parameters":[{"name":"MCP-Protocol-Version","in":"header","required":false,"description":"The MCP protocol version agreed at initialize (for example `2025-06-18`). Required on every request after initialize.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcRequest"}}}},"responses":{"200":{"description":"A JSON-RPC response, or a stream of them. A failed call carries a JSON-RPC `error` object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}},"text/event-stream":{"schema":{"type":"string"}}}},"401":{"description":"No or invalid token. WWW-Authenticate names the protected-resource metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthError"}}}}}}}},"components":{"schemas":{"JsonRpcRequest":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":["string","integer"]},"method":{"type":"string","examples":["tools/list"]},"params":{"type":"object"}}},"JsonRpcResponse":{"type":"object","required":["jsonrpc"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":["string","integer","null"]},"result":{"type":"object"},"error":{"$ref":"#/components/schemas/JsonRpcError"}}},"JsonRpcError":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer","description":"JSON-RPC error code (for example -32602 for bad params)."},"message":{"type":"string","description":"What went wrong."},"data":{"description":"More detail, when the server has it."}}},"AuthError":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"OAuth error code.","examples":["invalid_token"]},"requestId":{"type":"string","description":"Quote this when asking for support."}}}},"securitySchemes":{"slooshOAuth":{"type":"oauth2","description":"OAuth 2.0 with PKCE. Metadata: https://clerk.sloosh.ai/.well-known/oauth-authorization-server and https://mcp.sloosh.ai/.well-known/oauth-protected-resource/mcp.","flows":{"authorizationCode":{"authorizationUrl":"https://clerk.sloosh.ai/oauth/authorize","tokenUrl":"https://clerk.sloosh.ai/oauth/token","refreshUrl":"https://clerk.sloosh.ai/oauth/token","scopes":{"spacelab:read":"Read your workspace, assets, spaces, models, runs and credit balance.","spacelab:author":"Read, create and edit draft canvases, price a test run and publish them as spaces. Never spends credits.","spacelab:execute":"Spend credits: run spaces, generate and test drafts. Also import and upload assets.","user:org:read":"See the workspace you picked when you signed in.","offline_access":"Stay signed in."}}}}}}}