{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/newruntime-com/json-schema/newruntime-com-search-results-schema.json",
  "title": "SearchResults",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/newruntime-com-openapi.json#/components/schemas/SearchResults",
  "type": "object",
  "required": [
    "query",
    "count",
    "results"
  ],
  "properties": {
    "query": {
      "type": "string"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    },
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "total_matches": {
      "type": "integer",
      "minimum": 0,
      "description": "Records matching the query across all pages."
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "description": "Hits skipped before this page."
    },
    "next_offset": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Pass as offset for the next page; null on the last page."
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "title",
          "url",
          "kind"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "kind": {
            "type": "string"
          },
          "published_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          },
          "score": {
            "type": "number"
          },
          "date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Same as published_at (the MCP search_archive name)."
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Same as summary (the MCP search_archive name)."
          },
          "slug": {
            "type": "string"
          },
          "json": {
            "type": "string",
            "format": "uri",
            "description": "Machine-readable twin of the hit."
          }
        }
      }
    }
  }
}