Cleanup File
cc_cleanup_fileCleans source code files by removing BOM and NUL bytes, trimming trailing whitespace, and normalizing line endings, with optional dry-run preview.
Instructions
Cleans up source code files: BOM, NUL bytes, trailing whitespace, line endings.
Args:
path (string): Path to the file
remove_bom (boolean): Remove BOM
remove_trailing_whitespace (boolean): Trailing whitespace
normalize_line_endings (string): "lf" | "crlf"
remove_nul_bytes (boolean): Remove NUL bytes
dry_run (boolean): Preview only
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_cleanup_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file | |
| dry_run | No | Preview only | |
| remove_bom | No | Remove BOM | |
| remove_nul_bytes | No | NUL bytes | |
| normalize_line_endings | No | Line endings | |
| remove_trailing_whitespace | No | Trailing whitespace |