API & MCP

Everything a person can do on Box Dieline Generator (tuck box, pillow box, gift box), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Box Dieline Generator (tuck box, pillow box, gift box)

Make a folding box template at your exact size: reverse tuck-end box, pillow box, two-piece gift box (base and lid), pyramid or sleeve. Cut lines and fold lines sit on separate layers (or fold lines become perforations), the board thickness is added at the folds, and you get layered SVG and DXF for cutting machines plus a 1:1 PDF with a scale bar, tiled onto A4/Letter when the net is larger.

Inputs of Box Dieline Generator (tuck box, pillow box, gift box)
FieldTypeDefaultDescription
styleselect (tuck-end, pillow, gift, pyramid, sleeve)"tuck-end"Box style
lengthnumber70Inside length — front width (mm)
widthnumber40Inside width — depth (mm)
heightnumber100Inside height (mm). Pyramid: apex height. Sleeve: length of the sleeve.
calipernumber0.4Board thickness (mm). Paper 0.1–0.2, card 0.3–0.5, chipboard 1–2 mm.
gluenumber12Glue flap width (mm)
extranumber0Lid height (gift box) or curve depth (pillow box), mm, 0 = automatic
notchbooleantrueFinger notch (tuck-end box, sleeve)
sheetWidthnumber0Sheet or laser bed width (mm, 0 = no sheet). With a sheet size the parts are nested onto as many sheets as needed; 0 lays every part out in one drawing.
sheetHeightnumber0Sheet or laser bed height (mm, 0 = no sheet)
spacingnumber4Gap between parts (mm). For CNC routing use at least the cutter diameter.
labelsbooleantruePart names on a separate label layer
foldStyleselect (score, perforated)"score"Fold lines
paperselect (fit, a3, a4, a5, a6, b5, letter, legal, tabloid, halfletter)"fit"PDF pages

Example request

Reverse tuck-end box for a 63 × 88 mm card deck

curl -X POST https://kerfwiseboxdieline.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"style":"tuck-end","length":66,"width":22,"height":92,"caliper":0.35}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "kerfwise-box-dieline": { "type": "http", "url": "https://kerfwiseboxdieline.usefulweb.app/mcp" }
  }
}