Fix JSON
fc_fix_jsonRepair common JSON file errors such as BOM, trailing commas, single quotes, comments, and NUL bytes, with optional dry-run inspection and backup creation before fixes.
Instructions
Automatically repairs common JSON errors.
Args:
path (string): Path to the JSON file
dry_run (boolean, optional): Only show problems, do not repair
create_backup (boolean, optional): Create backup before repair
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": "fc_fix_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the JSON file | |
| dry_run | No | Only show problems | |
| create_backup | No | Create backup |