bom_manage
Detect, add, or remove Byte Order Mark (BOM) in files. Supports UTF-8, UTF-16, and UTF-32 detection, and UTF-8 BOM addition/removal.
Instructions
Detect, add, or remove BOM (Byte Order Mark) in a file. Supports UTF-8/UTF-16/UTF-32 BOM detection and UTF-8 BOM add/remove.
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>",
"action": "<action>"
},
"name": "bom_manage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to the file. Example: D:\Projects\file.txt | |
| action | Yes | Action to perform: 'detect' - detect BOM type, 'add_utf8' - add UTF-8 BOM, 'remove_utf8' - remove UTF-8 BOM |