linear_cutting_optimizer
Optimize 1D cutting plans for bars, pipes and profiles (linear cutting stock problem, best-fit decreasing heuristic). Returns bars used, per-bar cut lists with positions, total waste and unplaced parts. A web_url with the plan prefilled is included for a visual SVG diagram.
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": {
"unit": "<unit>",
"stock_length": "<stock_length>",
"parts": "<parts>"
},
"name": "linear_cutting_optimizer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kerf | No | Saw blade width consumed by each cut | |
| trim | No | Unusable trim at bar ends | |
| unit | Yes | Unit for all lengths | |
| parts | Yes | Parts to cut | |
| stock_count | No | How many stock bars are available | |
| stock_length | Yes | Length of one stock bar |