web_extract
Extract recurring elements from any public webpage with a CSS selector. Choose static, dynamic, or stealth retrieval to get visible text or attribute values.
Instructions
Extract repeated elements from a public webpage using a CSS selector.
If attribute is omitted, visible text is returned. In auto mode Scrapling tries static HTTP first, then a dynamic browser, then stealth browser retrieval.
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_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| mode | No | auto | |
| limit | No | ||
| selector | Yes | ||
| attribute | No |