Skip to main content
Glama

WritersLogic verifiable AI agents

heal-scraper

Self-Healing Scraper & DOM-to-JSON Compiler — Synthesizes durable CSS selectors (Cheerio; no XPath) for a target JSON schema, proves them against the live DOM in-request, and returns the extracted data plus a ready-to-run TypeScript Cheerio extractor.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "targetSchema": "<targetSchema>"
    },
    "name": "heal-scraper"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPage to fetch. Provide url or html.
htmlNoRaw HTML to use instead of fetching.
targetSchemaYesJSON Schema of the fields to extract: an object whose properties are string/number/integer/boolean (or arrays of those), or an array whose items are such an object for list pages. The pattern keyword is not allowed.
previousBrokenSelectorsNoMap of field name to the CSS selector that stopped working.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources