Export Shape
export_shapeExports a FreeCAD shape to STEP, IGES, BREP, or STL, inferring the format from the file extension. Omit the object to use the document's single final shape; multiple final shapes raise an error.
Instructions
Export a shape to STEP/IGES/BREP/STL. Format inferred from path extension.
object: FreeCAD object name (NOT a AnkusDrive handle). If omitted, exports the document's single final shape: inputs consumed by another feature (a cut's base/tool, Body features) are skipped, and solids win over sketches. If more than one final shape remains, it raises and lists them. It never picks one for you.
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": {
"path": "<path>"
},
"name": "export_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| object | No | ||
| workspace | No | Run this call in this named workspace |