Write File
write_fileWrite text to a file, creating parent directories automatically. Overwrites by default or appends when specified.
Instructions
Write text to a file, creating parent directories as needed. Overwrites by default; set append=true to append.
Args:
path (string): Destination file path.
content (string): Text to write.
append (boolean): Append instead of overwrite (default false).
Returns a confirmation with bytes written.
Example: { "path": "~/notes.txt", "content": "hello", "append": true }
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 | Destination path | |
| content | Yes | Text content to write | |
| append | No | Append instead of overwrite |