web_select
CSS selector extract from a web page — Fetch a public web page and return every element matching a CSS selector (tag, .class, #id, [attr], [attr=value], descendant and child combinators, :nth-child, :first-child, :not) with its visible text, href/src resolved to absolute URLs, or the value of one attribute (attr=content) or all attributes (attr=*). Scripts and styles are ignored; entities decoded. Optional attr=, text=0 to skip text, limit= (default 50, max 500). Works on server-rendered HTML (no JavaScript execution). Invalid selectors return 400 (not charged). Price: $0.004 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>",
"selector": "<selector>"
},
"name": "web_select"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | https://www.iana.org/help/example-domains | |
| selector | Yes | a |