create_file
Create a new file in the workspace with specified content, avoiding duplicates by requiring overwrite flag to replace existing files.
Instructions
Create a new file with the given content inside the workspace.
Fails with DUPLICATE_FILE if the file already exists unless overwrite=True is passed.
Args: path: Path relative to the workspace root, e.g. "MyApp/backend/main.py". content: Full text content of the file. overwrite: If True, replace an existing file at this path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | No | ||
| overwrite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||