utf8_verify
Verify a file's UTF-8 encoding and optionally repair UTF-16 corruption by re-saving as UTF-8.
Instructions
Check whether a file is valid UTF-8 and optionally fix UTF-16 corruption.
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": "utf8_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | Re-save as UTF-8 if corrupted (default: false) | |
| path | Yes | Absolute path to the file |