export_document
Exports FreeCAD document geometry to STEP, IGES, BREP, STL, OBJ, 3MF, DXF, SVG, AMF, or FCStd, inferring the format from the file extension and returning the written path, format, and byte size.
Instructions
Export the document geometry to STEP, IGES, BREP, STL, OBJ, 3MF, DXF, SVG, AMF or FCStd.
The format is inferred from the file extension unless format is given.
Returns the written path, format and byte size.
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_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| format | No | ||
| document | No |