Write file
write_fileWrite a file atomically within a configured scope. Ensures data integrity by writing to a temporary file then renaming. Supports custom encoding and automatic directory creation.
Instructions
Write a file atomically inside the configured scope (writes to a temp file then renames).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| encoding | No | utf-8 | |
| createDirs | No |