Write a file
write_fileCreate or overwrite text files on macOS while respecting path allowlists, blocking protected paths, and requiring confirmation before replacing existing files.
Instructions
Create or overwrite a text file. Honours the path allowlist, refuses protected paths, and asks for confirmation before overwriting an existing file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path (supports ~ for home). | |
| content | Yes | Full UTF-8 contents to write. |