File Write
file_writeWrites text to a local file — create, overwrite, or append. For .txt/.md/.csv/.json/.log and any plain-text or code file. (For Word use word_create, Excel excel_create, PowerPoint ppt_create.) The path must be inside an allowed folder — the same allowlist as file_read (home directory by default; extend via Advanced Settings → Allowed folders). Overwriting an existing file requires confirm=true (the first call returns a preview instead); append=true adds to the end and never needs confirm. Missing parent folders are created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file to write | |
| append | No | Append to the end instead of overwriting (default false) | |
| confirm | No | Required (true) to OVERWRITE an existing file. Not needed to create a new file or to append. | |
| content | Yes | Text content to write |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||