write_file
Write content to a file, with options to append or automatically create parent directories.
Instructions
Write or append text to a file.
Args:
path: Destination file path. ~ is expanded.
content: Text content to write.
append: If True, append to the file instead of overwriting.
create_parents: Create parent directories if they do not exist.
Returns: path, bytes_written, appended.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| append | No | ||
| content | Yes | ||
| create_parents | No |