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
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page to fetch. Provide url or html. | |
| html | No | Raw HTML to use instead of fetching. | |
| targetSchema | Yes | JSON 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. | |
| previousBrokenSelectors | No | Map of field name to the CSS selector that stopped working. |