write
Create or overwrite files while preserving encoding, applying .editorconfig to new files, and creating parent directories automatically.
Instructions
Create or overwrite a file. Preserves existing encoding, uses .editorconfig for new files, and creates parent directories.
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": {
"content": "<content>"
},
"name": "write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Alias for file_path | |
| content | Yes | Content to write to the file | |
| encoding | No | Charset override, e.g. EUC-KR or Shift_JIS; overrides .editorconfig, existing BOM takes priority | |
| file_path | No | Workspace-relative, absolute, or @name/subpath (directory_alias) |