Export Drawing
export_drawingExport a drawing page to PDF, SVG, or DXF headlessly, using the path extension to select the format. Returns the saved file path, size, format, view count, and dimensions.
Instructions
Export a drawing page to PDF, SVG, or DXF (format inferred from the path extension), headless. PDF/SVG are composed from the template, the per-view geometry, and any dimensions/annotations on the page; DXF uses FreeCAD's native page writer. Returns {path, size, format, views, dimensions}.
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": {
"page": "<page>",
"path": "<path>"
},
"name": "export_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| path | Yes | ||
| workspace | No | Run this call in this named workspace |