Fix Encoding
cc_fix_encodingRepairs encoding errors such as Mojibake and double UTF-8 in files, with optional dry-run preview and backup creation.
Instructions
Repairs encoding errors (Mojibake, double UTF-8).
Args:
path (string): Path to the file
dry_run (boolean): Preview only
create_backup (boolean): Create backup
Repairs 27+ Mojibake patterns (German, French, Spanish).
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_encoding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file | |
| dry_run | No | Preview only | |
| create_backup | No | Create backup |