znk_export
Export solids or imported files to STL, OBJ, or STEP with configurable STL/STEP options, optional output paths, and verification stats returned for each file.
Instructions
Export a solid to stl | obj | step. Pass a recipe (solid) or an imported file (file), plus an optional output path. STL defaults to binary (set binary=false for ASCII); STEP supports schema AP203/AP214/AP242 and length_unit m|mm (extensions are routed by znk2_cli and round-trip verified). When path is omitted the server writes under ZNK2_EXPORT_DIR (default: /znk_exports). Returns the absolute path, byte size and mesh/round-trip stats.
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": {
"format": "<format>"
},
"name": "znk_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | imported file to export (alternative to solid) | |
| path | No | output file path (optional) | |
| solid | No | solid recipe or previous tool result | |
| binary | No | STL only: binary (default true) or ASCII | |
| format | Yes | stl | obj | step | |
| schema | No | STEP schema (default AP242) | |
| angle_tol | No | tessellation angle tolerance in radians (default 0.2) | |
| chord_tol | No | tessellation chord tolerance; <=0 = 1e-3 * bbox diagonal | |
| length_unit | No | STEP length unit (default m) |