Extract Structured Data
extract_structuredExtract structured data from a URL or raw text into strict JSON matching a schema you provide. Fields the content doesn't support come back null - never an invented or approximate value, and an unmatchable schema returns an explicit error. Try GET /extract/sample. Part of the AgentIndex content kit (pdf, web-read, extract, summarize, detect-language) - see GET /capabilities.
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": {
"schema": "<schema>"
},
"name": "extract_structured"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to read and extract from. Provide this or text, not both. | |
| text | No | Raw text to extract from. Provide this or url, not both. | |
| schema | Yes | JSON Schema describing the fields to extract. The response's `data` field will strictly conform to it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Extracted data, matching the requested schema's shape - fields the content doesn't support come back null rather than an invented value (see missing_fields). | |
| x402_receipt | No | Billing and provenance receipt for this call. | |
| missing_fields | Yes | Top-level keys in data the model could not find in the content and returned as null. |