Fix JSON
cc_fix_jsonRepairs common JSON errors such as BOM, trailing commas, single quotes, comments, and NUL bytes, with optional dry-run preview and backup creation.
Instructions
Automatically repairs common JSON errors.
Args:
path (string): Path to the JSON file
dry_run (boolean): Only show issues
create_backup (boolean): Create backup
Repairs: BOM, trailing commas, single quotes, comments, NUL bytes
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": {
"path": "<path>"
},
"name": "cc_fix_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the JSON file | |
| dry_run | No | Preview only | |
| create_backup | No | Create backup |