{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/acuiq-com/json-schema/acuiq-com-wiki-search-response-schema.json",
  "title": "WikiSearchResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acuiq-com-openapi.json#/components/schemas/WikiSearchResponse",
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "pageSize": {
      "type": "integer"
    },
    "totalPages": {
      "type": "integer"
    },
    "hasMore": {
      "type": "boolean"
    },
    "nextPage": {
      "type": "integer"
    },
    "pages": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WikiSearchRow"
      }
    }
  },
  "required": [
    "query",
    "total",
    "page",
    "pageSize",
    "totalPages",
    "hasMore",
    "pages"
  ],
  "$defs": {
    "WikiSearchRow": {
      "type": "object",
      "description": "The shared wiki-search row (GET /api/wiki?q= and the MCP search_wiki tool).",
      "properties": {
        "path": {
          "type": "string",
          "description": "Section and slug, e.g. \"safety/pregnancy-and-the-forbidden-points\""
        },
        "title": {
          "type": "string"
        },
        "snippet": {
          "type": "string",
          "description": "The passage that matched, else the page description"
        },
        "basis": {
          "type": "string"
        },
        "audience": {
          "type": "string"
        },
        "lastVerified": {
          "type": [
            "string",
            "null"
          ],
          "format": "date",
          "description": "When the page was last checked against its sources; null if it never has been"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "markdown": {
          "type": "string",
          "format": "uri",
          "description": "The whole page as markdown"
        }
      },
      "required": [
        "path",
        "title",
        "snippet",
        "basis",
        "audience",
        "lastVerified",
        "url",
        "markdown"
      ]
    }
  }
}