export
Convert OpenSCAD code into 3D file formats (STL, 3MF, AMF, etc.) and return the file path.
Instructions
Export OpenSCAD code to a 3D file (STL, 3MF, AMF, etc.). Returns the file path.
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": {
"code": "<code>"
},
"name": "export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | OpenSCAD source code | |
| format | No | Output format: stl, 3mf, amf, off, dxf, svg | stl |
| params | No | ||
| filename | No | Output filename |