manage_bom
Detect, strip, or add Unicode BOMs to fix broken UTF-8 scripts or ensure correct UTF-16 encoding.
Instructions
Detect, strip, or add Unicode BOM (Byte Order Mark). UTF-8 BOM breaks PHP/shell scripts; UTF-16 files need BOMs. Parameters: path (required), action (required: "detect"|"strip"|"add"), encoding (required for "add": utf-8, utf-16-le, utf-16-be, utf-32-le, utf-32-be).
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": "manage_bom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| action | Yes | ||
| encoding | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hasBom | Yes | ||
| bomType | No | ||
| changed | Yes | ||
| message | Yes | ||
| bomBytes | No |