build_parametric_prompt
Build an optimized prompt for parametric OpenSCAD code generation, instructing AI to produce editable code with named variables and material-aware constraints.
Instructions
Build a prompt optimized for parametric OpenSCAD code generation.
Returns an enhanced prompt with OpenSCAD-specific instructions that
guide AI to produce well-structured parametric code with named
variables, descriptive comments, and material-aware design limits.
Use this instead of build_generation_prompt when you want the AI to
generate editable OpenSCAD code rather than a mesh file.
Args:
requirements: Natural language description of the desired part.
material: Optional material override (e.g. "petg").
printer_model: Optional printer model ID (e.g. "bambu_a1").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | ||
| requirements | Yes | ||
| printer_model | No |