pack3d_wasm_pack
Calculates 3D carton packing arrangements for warehouse and e-commerce items using First-Fit Decreasing and Extreme Point heuristics with 6-axis rotations to optimize carton selection.
Instructions
Calculates 3D physical shipping carton packing arrangements for warehouse packages and e-commerce items using First-Fit Decreasing (FFD) and Extreme Point heuristics with full 6-axis orthogonal rotations. Use when: Optimizing warehouse carton selection, freight volumetric weight calculation, and logistics order fulfillment. Do not use when: Auditing code diffs, analyzing Terraform infrastructure, or performing software security reviews. Alternative: Use agentpr_guard_audit for PR security audits, or terracost_blast_evaluate for cloud infrastructure plans. Execution: Runs locally in-memory (<15ms), read-only, idempotent, zero network calls, zero telemetry, air-gapped deterministic.
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": {
"items": "<items>"
},
"name": "pack3d_wasm_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of 3D items with dimensions (width, height, depth) and weights to pack into cartons. | |
| licenseKey | No | Optional TopAI Sovereign Pro offline license key (or set TOPAI_LICENSE_KEY env variable). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | Yes | Target carton dimensions and maximum payload capacity. | |
| fitted | Yes | Placed items with coordinates (x, y, z) and rotation state. | |
| unfitted | Yes | Items that could not fit into the container. | |
| totalWeightKg | Yes | Total combined weight of packed items in kilograms. | |
| utilizationPercent | Yes | Container volume utilization percentage (0-100). |