{
  "id": "contextdev.web.scrape.html",
  "object": "tool",
  "name": "Scrape HTML",
  "summary": "Fetch the fully rendered HTML of any page.",
  "description": "Return the rendered DOM of a page when the application needs the HTML rather than cleaned text — custom parsing, archiving, QA, and extraction pipelines. Same rendering stack as the Markdown scrape (JavaScript execution, anti-bot bypass, premium proxies included), with options for main-content-only output, inline iframe rendering, animation settling, cache reuse, an extra post-load wait, and the proxy exit country. Sitemaps and feeds come back as xml; office documents as their detected type.\n\nRaw contextdev#web/scrape/html endpoint: input is { body, queryParams, pathParams } as the provider documents them (https://docs.context.dev/api-reference/web-scraping/html).",
  "category": "lookup",
  "hosted_by": "Context.dev",
  "runtime": "partner",
  "side_effects": false,
  "status": "live",
  "credits": 0,
  "price": null,
  "providers": [
    {
      "id": "contextdev",
      "name": "Context.dev",
      "price": null,
      "own_key_only": true
    }
  ],
  "mcp_name": "contextdev_web_scrape_html",
  "input_schema": {
    "type": "object",
    "properties": {
      "queryParams": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "pattern": "^https?:\\/\\/\\S+$",
            "description": "Full URL to fetch, including the http:// or https:// scheme."
          },
          "includeFrames": {
            "type": "boolean",
            "description": "Render iframes inline into the returned HTML. Default false."
          },
          "useMainContentOnly": {
            "type": "boolean",
            "description": "Keep only the page's main content, dropping headers, footers, sidebars, and navigation when detectable. Default false."
          },
          "maxAgeMs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2592000000,
            "description": "Reuse a cached result younger than this many milliseconds. Default 86400000 (1 day), max 2592000000 (30 days). Set 0 to always fetch fresh."
          },
          "waitForMs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 30000,
            "description": "Extra browser wait in milliseconds after page load before the content is captured (0-30000). Useful for JavaScript-heavy pages."
          },
          "settleAnimations": {
            "type": "boolean",
            "description": "Wait briefly for CSS and transition animations to settle before the HTML is captured. Default false."
          },
          "country": {
            "type": "string",
            "enum": [
              "ad",
              "ae",
              "af",
              "ag",
              "ai",
              "al",
              "am",
              "ao",
              "ar",
              "at",
              "au",
              "aw",
              "az",
              "ba",
              "bb",
              "bd",
              "be",
              "bf",
              "bg",
              "bh",
              "bi",
              "bj",
              "bm",
              "bn",
              "bo",
              "bq",
              "br",
              "bs",
              "bw",
              "by",
              "bz",
              "ca",
              "cd",
              "cf",
              "cg",
              "ch",
              "ci",
              "cl",
              "cm",
              "cn",
              "co",
              "cr",
              "cv",
              "cw",
              "cy",
              "cz",
              "de",
              "dj",
              "dk",
              "dm",
              "do",
              "dz",
              "ec",
              "ee",
              "eg",
              "es",
              "et",
              "fi",
              "fj",
              "fr",
              "ga",
              "gb",
              "gd",
              "ge",
              "gf",
              "gg",
              "gh",
              "gm",
              "gn",
              "gp",
              "gq",
              "gr",
              "gt",
              "gu",
              "gw",
              "gy",
              "hk",
              "hn",
              "hr",
              "ht",
              "hu",
              "id",
              "ie",
              "il",
              "im",
              "in",
              "iq",
              "ir",
              "is",
              "it",
              "je",
              "jm",
              "jo",
              "jp",
              "ke",
              "kg",
              "kh",
              "kn",
              "kr",
              "kw",
              "ky",
              "kz",
              "la",
              "lb",
              "lc",
              "lk",
              "lr",
              "ls",
              "lt",
              "lu",
              "lv",
              "ly",
              "ma",
              "mc",
              "md",
              "me",
              "mf",
              "mg",
              "mk",
              "ml",
              "mm",
              "mn",
              "mo",
              "mq",
              "mr",
              "mt",
              "mu",
              "mv",
              "mw",
              "mx",
              "my",
              "mz",
              "na",
              "nc",
              "ne",
              "ng",
              "ni",
              "nl",
              "no",
              "np",
              "nz",
              "om",
              "pa",
              "pe",
              "pf",
              "pg",
              "ph",
              "pk",
              "pl",
              "pr",
              "ps",
              "pt",
              "py",
              "qa",
              "re",
              "ro",
              "rs",
              "ru",
              "rw",
              "sa",
              "sc",
              "sd",
              "se",
              "sg",
              "si",
              "sk",
              "sl",
              "sm",
              "sn",
              "so",
              "sr",
              "ss",
              "st",
              "sv",
              "sx",
              "sy",
              "sz",
              "tc",
              "td",
              "tg",
              "th",
              "tj",
              "tl",
              "tm",
              "tn",
              "tr",
              "tt",
              "tw",
              "tz",
              "ua",
              "ug",
              "us",
              "uy",
              "uz",
              "vc",
              "ve",
              "vg",
              "vi",
              "vn",
              "ye",
              "yt",
              "za",
              "zm",
              "zw"
            ],
            "description": "Two-letter ISO 3166-1 alpha-2 country code, lowercase (e.g. 'us', 'gb', 'de'). Must be one of Context.dev's supported countries."
          },
          "zdr": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled"
            ],
            "description": "Set 'enabled' to bypass Context.dev's shared caches and omit request and response content from its retained usage logs. Requires zero data retention on the Context.dev organization, otherwise the call fails with ZDR_NOT_ENABLED."
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "queryParams"
    ],
    "additionalProperties": false
  },
  "kind": "endpoint"
}