Json extract
json_extractExtract structured JSON data from unstructured text (invoices, emails, receipts, pages) using fields or JSON Schema via Workers AI + deterministic JSON repair. $0.005 per call over x402 (Base, Solana or X1) or X-API-Key. Call once without payment for terms, then pass payment.
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": "json_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Unstructured source text (1 to 14000 chars). | |
| model | No | Optional model (default llama-3.3-70b). | |
| fields | No | Field names to extract (required unless schema is provided). | |
| schema | No | Optional JSON Schema object describing desired output. | |
| payment | No | signed x402 payment payload (PAYMENT-SIGNATURE). | |
| instruction | No | Optional extra extraction rule. |