write_file
Create or overwrite a text file in the workspace, automatically creating parent directories. Set overwrite to false to prevent accidental replacement of existing files.
Instructions
Create or overwrite a text file inside the workspace.
Args: path: Destination path, relative to the workspace root. Parent directories are created automatically. content: Text content to write (UTF-8). overwrite: If False and the file already exists, fails instead of overwriting it.
Returns: The path and number of bytes written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| overwrite | No |