file_write
Write text content to any file on a Windows PC, creating the target file and missing parent directories automatically. Ideal for generating config files, scripts, or saving process output by fully overwriting existing files.
Instructions
Write text content to a file on this Windows PC. If the file does not exist, it will be created automatically along with any missing parent directories (auto-create directory). If the file already exists, its entire content will be overwritten (full replacement). Use this to create new configuration files, save processed data output, write source code, generate scripts, or update files by rewriting their full content. Path must be absolute. Content is written in UTF-8 encoding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the target file. Example: D:\Projects\app\config.json. Parent directories will be created automatically if they don't exist. | |
| content | Yes | The full text content to write into the file. Can be JSON, source code, configuration, or any text. |