Write File
write_fileCreate a new file or fully overwrite an existing one, automatically creating any missing parent directories. Use it for whole-file writes; to change part of an existing file, use the edit tool instead.
Instructions
Create a new file or completely overwrite an existing file, creating any missing parent directories. Overwrites without warning; to change part of an existing file use edit_file.
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": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path, or relative to the server's working directory. | |
| content | Yes | The complete new contents of the file, written as given. |