fs_write_file
Write content to a file, creating or overwriting it. Use for new files or full rewrites without preserving existing BOM or EOL style.
Instructions
Write content to a file, creating or overwriting it.
Use this for new files or full rewrites. Does not preserve existing BOM or EOL style — use fs_edit_file for that.
Returns: {"path", "bytes_written", "bom_preserved", "eol_style"}.
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>",
"content": "<content>"
},
"name": "fs_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes |