Extract Structured Data
extractStructuredDataExtracts structured JSON data from any webpage or PDF using an AI prompt and optional JSON Schema.
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>",
"prompt": "<prompt>"
},
"name": "extractStructuredData"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target web page or PDF URL to extract data from. | |
| pages | No | Optional PDF page range (e.g. '1-5'). | |
| prompt | Yes | Natural-language extraction instructions. | |
| schema | No | Optional JSON Schema to constrain the extracted output structure. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extracted | No | Extracted structured JSON payload. |