utf8_write
Write files as UTF-8 without BOM on Windows. Fixes Cursor Write encoding issues by ensuring correct UTF-8 and line endings.
Instructions
Create or overwrite a file as UTF-8 (no BOM). Use instead of Cursor Write 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>",
"contents": "<contents>"
},
"name": "utf8_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file | |
| newline | No | Line ending style (default: auto) | |
| contents | Yes | Full file contents |