Write File
write_fileCreates a file or completely overwrites one, including missing parent directories. Use for full-content writes; choose the edit tool to modify part of a file.
Instructions
Create a file or completely overwrite one, creating missing parent directories. Overwrites without warning; to change part of a file use the edit tool.
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. |