ai_json_repair
Repair malformed JSON — Fix broken or invalid JSON (trailing commas, bad quotes, truncation) into valid JSON using Workers AI. Pass ?text= with the malformed JSON (URL-encoded). Price: $0.006 USDC (Base, via x402).
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": "ai_json_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | the malformed JSON string to repair |