fix_encoding
Detect and repair encoding issues such as broken UTF-8, BOM, and cp1252 artifacts in files. Dry-run mode analyzes without modifying.
Instructions
Fix encoding issues: detect and repair BOM, broken UTF-8, cp1252 artifacts. Common on Windows.
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": "fix_encoding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file | |
| dry_run | No | true = analyze only, false = write fixed file |