Write File
fc_write_fileWrite content to a file, creating or overwriting the file. Supports optional append mode and automatic creation of parent directories. Confirms success with file size output.
Instructions
Writes content to a file. Creates the file if it does not exist.
Args:
path (string): Full path to the file
content (string): Content to write
append (boolean, optional): Append to file instead of overwriting
create_dirs (boolean, optional): Create missing directories
Returns:
Confirmation with file size
Warning: Overwrites existing files without warning when append=false!
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to the file | |
| content | Yes | Content to write | |
| append | No | Append to file | |
| create_dirs | No | Create missing directories |