json_repair
Repair broken JSON text deterministically (markdown fences, BOM, smart/single quotes, comments, bare keys, trailing commas, Python literals, JSONL). Returns the parsed value + repairs applied. Free.
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_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | the broken JSON text |