{
  "schema_version": 1,
  "module_code": "websites",
  "description": "Websites Studio — Build, customize, and publish responsive websites for Spaces, Networks, and Personal profiles using 20 templates or guided AI prompts.",
  "tools": [
    {
      "name": "websites.list_templates",
      "description": "List all 20 responsive website templates with categories, themes, and recommended VTC apps",
      "parameters": { "type": "object", "properties": {} },
      "http": { "method": "GET", "path": "/api/v1/websites/templates" },
      "permissions": ["member"]
    },
    {
      "name": "websites.ai_generate",
      "description": "Create a Vite website from scratch using guided prompts or modify an existing template/site with AI prompts",
      "parameters": {
        "type": "object",
        "properties": {
          "mode": { "type": "string", "enum": ["create", "modify"] },
          "scope": { "type": "string", "enum": ["space", "personal"] },
          "identifier": { "type": "string" },
          "template_id": { "type": "string" },
          "prompt": { "type": "string" }
        }
      },
      "http": { "method": "POST", "path": "/api/v1/websites/ai-generate" },
      "permissions": ["admin", "member"]
    },
    {
      "name": "websites.publish",
      "description": "Publish a Space, Network, or Personal website to its subdomain",
      "parameters": {
        "type": "object",
        "properties": {
          "scope": { "type": "string", "enum": ["space", "personal"] },
          "identifier": { "type": "string" },
          "site_config": { "type": "object" }
        },
        "required": ["scope", "identifier", "site_config"]
      },
      "http": { "method": "POST", "path": "/api/v1/websites/publish" },
      "permissions": ["admin", "member"]
    }
  ]
}
