Unstructured Text to Typed JSON Entity & Record Extractor
extract_structured_json_entitiesExtracts structured JSON records, named entities, dates, and financial figures from unstructured prose, emails, or HTML/Markdown dumps. Use when converting unstructured natural-language text into a structured JSON array of entities; for validating and coercing an existing JSON payload against a formal JSON Schema, use enforce_json_schema_types instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'text' ('extraction_target' defaults to 'general_entities_and_metrics'), supports '?demo=true' or L402 (25 sats), and returns HTTP 400 if invalid.
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": {
"text": "<text>"
},
"name": "extract_structured_json_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Unstructured document, email body, or webpage text to extract structured entities from. | |
| extraction_target | No | Primary entity domain to extract; defaults to 'general_entities_and_metrics' when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Extraction model executed ('gemini-3.8-flash'). | |
| success | Yes | True when entity extraction succeeded. | |
| records_count | Yes | Number of distinct entity records extracted. | |
| extracted_data | Yes | Structured JSON object or array containing the extracted entities. |