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 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination path | |
| content | Yes | Text content to write | |
| append | No | Append instead of overwrite |