vc_json_repair
Repair malformed JSON from LLM output and return valid parsed JSON.
Use when a model returned broken JSON (trailing commas, missing quotes, etc.).
Do not use for web fetching or search — use vc_web_search / vc_page_markdown.
Auth: free-trial or X-Vibes-Key preferred; else x402 (~$0.02).
Side effects: none local; compute-only remote call. Idempotent for the same text.
Returns repaired JSON, or payment_required.
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": "vc_json_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Malformed JSON or JSON-like text from an LLM. | |
| payment_signature | No | Optional x402 PAYMENT-SIGNATURE if not using X-Vibes-Key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |