extract_json
Extract JSON embedded in arbitrary text — LLM prose, chat messages, logs, emails — then repair and validate it. Deterministic extraction is free. If no JSON can be located and allow_llm_fallback is true, a paid LLM extracts structured data from the text (requires x402 payment; charged only on success). Pass a JSON Schema to shape the output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Text that may contain JSON | |
| schema | No | Optional JSON Schema the output must conform to | |
| allow_llm_fallback | No | Permit the paid LLM extraction tier |