Compare slices
compare_slicesSlice one model several ways and compare print time, filament use and cost side by side, revealing the price of stronger settings, finer layers or another orientation before you commit.
Instructions
Slice the same model several ways and compare print time, filament and cost side by side.
Use it to show the price of a choice (stronger settings, finer layers, another orientation) before committing; for a single slice use slice_model. Runs the slicer once per variant, so it takes longer, and writes each variant's G-code to output_dir. Returns each variant's numbers, the change against the first, and the fastest and lightest variant.
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": {
"models": "<models>",
"variants": "<variants>"
},
"name": "compare_slices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | Model paths sliced the same way in every variant. | |
| printer | No | Printer preset name or a unique part of it, e.g. 'Kobra X'. Omit to use the printer selected in the slicer window. | |
| process | No | Process preset (layer height, speeds), e.g. '0.20mm Standard'. Omit to use the slicer window's selection. | |
| variants | Yes | Up to 8 variants, each {'label': str, 'overrides': {...}, 'process': str, 'filaments': [...], 'rotation': {...}, 'scale': float}; all keys optional except label. The first is the reference. | |
| filaments | No | Filament preset names, one per filament slot, e.g. ['Anycubic PLA']. Omit to use the slicer window's selection. | |
| output_dir | No | Folder for the output files. Default: next to the first model. | |
| output_name | No | Base name for the output files. Default: the first model's name. |