cache_design_with_source
Stores a design file in the cache with its OpenSCAD source code and generation prompt, so you can re-generate or tweak the model later.
Instructions
Cache a design file alongside its parametric source code.
Stores the STL/3MF file in the design cache and attaches the
OpenSCAD source code and generation prompt so the design can
be re-generated or tweaked later.
Args:
file_path: Path to the design file (STL, 3MF, etc.).
scad_source: OpenSCAD source code that produced this file.
generation_prompt: The prompt used to generate the design.
provider: Generation provider name (e.g. "openscad", "gemini").
tags: Optional tags for search.
filament_type: Material type (e.g. "PLA", "PETG").
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"scad_source": "<scad_source>"
},
"name": "cache_design_with_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags for search. | |
| provider | No | Generation provider name (e.g. "openscad", "gemini"). Default: "openscad". | |
| file_path | Yes | Path to the design file (STL, 3MF, etc.). | |
| scad_source | Yes | OpenSCAD source code that produced this file. | |
| filament_type | No | Material type (e.g. "PLA", "PETG"). | |
| generation_prompt | No | The prompt used to generate the design. Default: "". |