{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beatapi/json-schema/beatapi-web-read-request-schema.json",
  "title": "WebReadRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beatapi-web-search-api-openapi.yml#/components/schemas/WebReadRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "urls"
  ],
  "properties": {
    "urls": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "type": "string",
        "maxLength": 2048,
        "pattern": "^https?://"
      },
      "description": "Pages to read. Each must be a public `http` or `https` URL without a user\nname or password, and not `localhost` or a private-network IP address.\nDuplicates are read once.\n"
    },
    "query": {
      "type": "string",
      "maxLength": 400,
      "description": "When set, only the passages relevant to it are returned."
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "text"
      ],
      "default": "markdown",
      "description": "Format of each result's `content` field, Markdown or plain text. The field is always named `content`, whatever the format."
    },
    "max_chars": {
      "type": "integer",
      "minimum": 500,
      "maximum": 100000,
      "default": 20000,
      "description": "Maximum characters returned per URL. Longer content is cut and marked `truncated`."
    }
  }
}