Deterministic Edge DOM CSS Selector Scraper & Isolator
isolate_css_selectorsEvaluates CSS selector queries against live URLs or raw HTML DOM trees to extract targeted inner text, outer HTML, or element attributes. Accepts either 'url' to fetch directly or raw 'html_content' from upstream scrape_readable_article; for parsing complete table matrices into JSON, use parse_html_tables instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'url' or 'html_content' plus 'selector_query' ('extraction_mode' defaults to 'inner_text'), supports '?demo=true' or L402 (10 sats), and returns HTTP 400 if invalid.
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": {
"selector_query": "<selector_query>"
},
"name": "isolate_css_selectors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Optional web page URL to fetch and parse directly, bypassing an out-of-band fetch step. | |
| html_content | No | HTML source markup to query against using CSS selector matching rules. | |
| selector_query | Yes | CSS selector query expression (e.g., '.pricing-card', '#main h2', 'article p'). | |
| extraction_mode | No | DOM extraction representation: text content, outer HTML snippet, or attribute key-value map. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elements | Yes | Extracted textual or markup contents of matched DOM elements. | |
| matched_count | Yes | Number of DOM nodes matching the provided CSS selector query. | |
| selector_used | Yes | Normalized CSS selector executed during edge DOM traversal. |