Deterministic JSON repair for agent tool outputs, with optional JSON Schema validation. Built for tight agent loops at micropayment prices.