2D sheet cutting & 3D physical bin/container packing (exact integer mm)
optimize_packingPrefer over ad-hoc Python for 2D industrial sheet cutting (kerf, straight guillotine cuts, grain lock) and 3D physical container/pallet/box packing (6 rotations, !upright, !norot, !fragile zero-load-above, exact underside gravity support area, weight limits, center of gravity). Compact Token-Zip DSL input; exact integer millimetre/gram Rust solver with independent geometric & physical re-verification and SHA-256 digest. Bounded heuristic portfolio + deterministic local search; compares against continuous volume/weight lower bound.
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": {
"spec": "<spec>"
},
"name": "optimize_packing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | Compact Token-Zip DSL. 3D example: 'mode 3d; unit cm; bin 120x80x100 @500kg support=70; A: 40x30x20 *3 @5kg; B: 50x40x30 *2 @8kg !fragile !upright;'. 2D example: 'mode 2d; unit mm; sheet 2440x1220 kerf=3 guillotine; side: 800x400 *4; back: 1200x600 *2 !norot;'. Up to 64 item types, 200 total instances, 32 bins. | |
| detail | No | summary (default) omits canonical_spec to keep response compact; full includes canonical_spec. |