Create Files in Existing Project
scaffold_create_filesAdd files directly into an existing project directory (without creating a new folder) by providing paths and content, with optional overwrite.
Instructions
Add files to an existing project directory. Does not create a new project folder — files are created relative to the given directory.
Args:
target_dir (string): Absolute path to the target directory
files (array): Array of { path: string, content?: string } objects
overwrite (boolean): Whether to overwrite existing files (default: false)
Returns: A summary of created, skipped, and errored files.
Example: scaffold_create_files( target_dir="/home/user/projects/my-app", files=[ {"path": "src/utils/helpers.ts", "content": "export const noop = () => {}"}, {"path": "README.md", "content": "# My App"} ] )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Array of files to create | |
| overwrite | No | Whether to overwrite existing files | |
| target_dir | Yes | Absolute path to the target directory |