pack_cargo
Optimize cargo loading into trucks or containers by generating a validated 3D plan with loading meters, pallet positions, and weight, respecting stacking and fragility constraints.
Instructions
Optimize how cargo is loaded into a truck, trailer or shipping container. Returns a physically valid layout (placements with x/y/z and rotation, respecting stacking, fragility, weight and axle constraints) plus the freight billing metrics: LDM (loading meters), linear feet, EUR pallet positions and total weight. Submits an async job and waits for the result — typically 5-30 seconds. Use list_vehicles first if you are unsure of the vehicle code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Plan name (production mode) | |
| items | Yes | The cargo manifest | |
| units | No | How item numbers are read AND returned: mm/kg (default) or in/lb | |
| sandbox | No | Force sandbox mode (nothing persisted). Omit to let the account tier decide: enterprise accounts create a real plan with a shareable link, others sandbox automatically. | |
| vehicle | Yes | Vehicle code, e.g. CURTAINSIDER_136 (13.6m curtainsider) or 40HC (40ft high-cube container). Get valid codes from list_vehicles. | |
| objective | No | Minimize loading meters (default) or billed pallet positions | |
| ldm_limit_m | No | Restrict the load to the first N loading meters (trucks) |