{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unbrowse-ai/json-schema/unbrowse-ai-tool-scope-schema.json",
  "title": "ToolScope",
  "description": "A named set of apps and tools. An MCP client at /mcp/{slug} (or /mcp?scope={slug}) lists and routes to only these; /mcp?apps=a.com,b.com is the ad-hoc form.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/unbrowse-ai-openapi.json#/components/schemas/ToolScope",
  "type": "object",
  "required": [
    "slug"
  ],
  "properties": {
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{0,39}$"
    },
    "name": {
      "type": "string"
    },
    "apps": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Registrable domains (github.com); every tool on them is in scope."
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Capability ids, on top of the apps."
    },
    "core": {
      "description": "Which Unbrowse tools the connection keeps.",
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "all",
            "run_only"
          ]
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    },
    "discoverPublic": {
      "type": "boolean",
      "description": "Let discover search the whole public registry, beyond the scope's apps."
    },
    "urls": {
      "type": "object",
      "readOnly": true,
      "properties": {
        "mcp": {
          "type": "string"
        },
        "mcpQuery": {
          "type": "string"
        }
      }
    }
  }
}