extract_data
Extract structured data from a web page with CSS selectors. Returns JSON with text content or attributes from single or multiple matching elements.
Instructions
Extract structured data from a web page using CSS selectors. Returns JSON with extracted text content or attribute values. Supports single element, multiple elements, and attribute extraction.
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>",
"selectors": "<selectors>"
},
"name": "extract_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to extract data from (must be http or https) | |
| selectors | Yes | List of CSS selectors with extraction rules | |
| timeout | No | Timeout in seconds (default: 30) |