Html Select
html_selectScrape a public page (SSRF-safe fetch) or an HTML string with a CSS selector (CSS3 plus :has, :contains, :nth-child(an+b), attribute operators) or raw XPath: returns each match's text, attributes and optionally outer HTML, or just one attribute (href / src resolved to absolute URLs). Also returns the XPath the selector compiled to. Like querySelectorAll without a browser. Price: $0.003 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/html-select
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "html_select"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| attr | No | Return only this attribute per match (href/src made absolute) | |
| html | No | HTML source instead of url | |
| limit | No | ||
| xpath | No | XPath 1.0 expression instead of selector | |
| maxText | No | ||
| selector | No | CSS selector (or use xpath) | |
| outerHtml | No | Include each match's outer HTML |