extract_data
Extract structured data from a web page using CSS selectors, or auto-detect tables and lists for scraping.
Instructions
Extract structured data from a page using CSS selectors, or auto-detect tables and lists
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>"
},
"name": "extract_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to extract from | |
| fields | No | When using list_selector, map of field names to child selectors, e.g. {"name": "h2", "price": ".price"} | |
| selectors | No | Map of field names to CSS selectors, e.g. {"title": "h1", "price": ".price"} | |
| list_selector | No | CSS selector for repeating items (e.g. '.product-card'). Extracts all matching elements. |