{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tooltrace-io/json-schema/tooltrace-io-url-request-schema.json",
  "title": "UrlRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tooltrace-io-openapi.json#/components/schemas/UrlRequest",
  "properties": {
    "render": {
      "type": "string",
      "enum": [
        "never",
        "auto",
        "always"
      ],
      "title": "Render",
      "description": "Use static HTML, automatically render when needed, or always use a browser. Static requests cost 1 credit; browser-rendered requests cost 5 credits.",
      "default": "auto"
    },
    "wait_until": {
      "type": "string",
      "enum": [
        "domcontentloaded",
        "load",
        "networkidle"
      ],
      "title": "Wait Until",
      "description": "Browser navigation milestone. Used only when browser rendering occurs.",
      "default": "domcontentloaded"
    },
    "wait_for_selector": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Wait For Selector",
      "description": "Optional CSS selector to await on rendered pages."
    },
    "render_timeout_seconds": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 45.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Render Timeout Seconds",
      "description": "Optional browser-rendering timeout. The plan maximum still applies."
    },
    "url": {
      "type": "string",
      "maxLength": 2083,
      "minLength": 1,
      "format": "uri",
      "title": "Url",
      "description": "Public HTTP or HTTPS webpage URL. Private networks and unsafe redirects are blocked."
    }
  },
  "type": "object",
  "required": [
    "url"
  ]
}