Create Custom Project
scaffold_create_projectGenerate a project folder with specified files and subdirectories from a JSON definition, supporting overwrite control.
Instructions
Create a project from a custom structure definition. Pass files and optional folders as JSON.
Args:
project_name (string): Name of the project folder
root_dir (string): Parent directory where the project folder will be created
files (array): Array of { path: string, content?: string } objects
folders (array, optional): Array of folder paths to create (empty dirs)
overwrite (boolean): Whether to overwrite existing files (default: false)
Returns: A summary of created, skipped, and errored files/folders.
Example: scaffold_create_project( project_name="my-api", root_dir="/home/user/projects", files=[ {"path": "src/index.ts", "content": "console.log('hello')"}, {"path": "package.json", "content": "{ "name": "my-api" }"} ], folders=["src/routes", "src/models"] )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Array of files to create | |
| folders | No | Array of folder paths to create (empty directories) | |
| root_dir | Yes | Absolute path to the parent directory | |
| overwrite | No | Whether to overwrite existing files | |
| project_name | Yes | Name of the project folder to create |