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.
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": {
"input": "<input>"
},
"name": "extract_json"
}
}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 |