Repair & validate JSON ($0.002)
weblens_json_repairRepairs malformed JSON by fixing code fences, comments, quotes, bare keys, trailing commas, Python literals, and truncated endings, then optionally validates it against a JSON Schema.
Instructions
Fix broken JSON (code fences, comments, single quotes, bare keys, trailing commas, Python literals, cut-off endings) and optionally validate it against a JSON Schema (no regex patterns). Costs $0.002 USDC.
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": "weblens_json_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The broken JSON text | |
| schema | No | Optional JSON Schema to validate against |