KerfScript
v0.1.1Write, check and render parametric laser-cutting designs in KerfScript, as SVG or DXF.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
kerfscript_docs
Read KerfScript language and JavaScript integration documentation for building laser-cutting generators. Omit topic to list guides. Long guides are paginated with nextOffset.
| Parameter | Type | Description |
|---|---|---|
offset | integer | |
topic | string |
kerfscript_examples
Find working parametric laser-cutting examples by title, id or tags. Supply an id from the results to get its .kerf source.
| Parameter | Type | Description |
|---|---|---|
id | string | |
offset | integer | |
query | string |
kerfscript_parameters
Extract editable settings and customizer ranges from .kerf source to build a generator UI. Parses without rendering geometry.
| Parameter | Type | Description |
|---|---|---|
source * | string |
kerfscript_render
Render .kerf source to SVG or DXF files, one per sheet, with part sizes, layers and warnings. Uses millimetres and bundled Atkinson font. No filesystem or network imports. Bounded to 100 parts and 10 sheets. For production generators install @mylasertools/kerfscript locally.
| Parameter | Type | Description |
|---|---|---|
source * | string | KerfScript program. Lengths are millimetres; angles are degrees. |
format | string | |
gap | number | |
kerf | number | |
layout | string | |
libraries | object | Optional virtual libraries keyed by the exact use/include path. No files or URLs are fetched. |
margin | number | |
params | object | |
sheet | array |