web_scrape
Structured scrape: named CSS fields to JSON — Turn any public web page into a JSON object in one call. Pass fields as name=selector pairs separated by semicolons; add @attr to read an attribute (relative href/src become absolute URLs) and [] to return every match as an array instead of the first. Example: fields=heading=h1;links=a@href[];image=img@src. Returns data{}, which fields matched, match counts and the page title. Up to 25 fields; server-rendered HTML only (no JavaScript). Bad selectors return 400 (not charged). Price: $0.005 USDC (Base, via x402).
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": {
"url": "<url>",
"fields": "<fields>"
},
"name": "web_scrape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | https://www.iana.org/help/example-domains | |
| fields | Yes | heading=h1;links=a@href[] |