Extract Structured Data
extract_structured_dataExtract structured data from web pages via CSS selectors or LLM, including tables, and persist full results as JSON.
Instructions
Extract structured data using CSS selectors or LLM. Use output_path to persist the full extraction (including table_data) to disk as JSON and receive a slim response.
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_structured_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target URL | |
| timeout | No | Timeout in seconds | |
| overwrite | No | Overwrite an existing output file at output_path. Defaults to False. | |
| output_path | No | Absolute file path (auto .json extension) to persist the full extracted_data + table_data as JSON. When set, the response is slimmed (content, markdown, table_data, extracted_data.raw_content removed). | |
| wait_for_js | No | Wait for JavaScript | |
| css_selectors | No | CSS selector mapping | |
| extraction_type | No | 'css'|'llm'|'table' | css |
| extraction_schema | No | Schema definition | |
| generate_markdown | No | Generate markdown | |
| table_chunking_strategy | No | 'intelligent'|'fixed'|'semantic' | intelligent |
| use_llm_table_extraction | No | Use LLM table extraction | |
| include_content_in_response | No | When True (with output_path set), also keep extracted_data/table_data/content in the response. Defaults to False. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||