file_write
Create or overwrite files with full content via JSON parameters, preventing shell escaping errors. Parent directories are created automatically when missing.
Instructions
Create or overwrite a file with the given content. Content goes through JSON parameters — never a shell — so there are no escaping or newline-stripping issues. Automatically creates parent directories if they do not exist. Use this for new files and full rewrites. For targeted edits to existing files, use file_edit instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file to write. Tilde (~) is expanded to the proot home directory. | |
| content | Yes | Full file content to write. |