create_model
Create a new OpenSCAD model file by providing a name and source code. The file is saved to the configured workspace, with .scad extension added automatically if missing.
Instructions
Create a new OpenSCAD model file.
Args: name: File name for the model (alphanumeric, hyphens, underscores; .scad extension added automatically if missing) content: OpenSCAD source code for the model workspace: Directory to save the model in. Defaults to the configured temp_dir/models directory. ctx: MCP context for logging
Returns: Dict with success status, path, and name of the created file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| content | Yes | ||
| workspace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||