Compare slicing variants
compareSlices one model across preset variants and returns print time, filament grams, and differences from the first reference variant to evaluate settings such as perimeter count or infill.
Instructions
Slices the same model once per variant and returns a table of time, grams and the difference from the first variant. Use it for questions like "how long with 3 vs 4 perimeters?". Give a variant with no overrides first as the reference. Uses the saved preset files, not unsaved GUI changes. The CLI time estimate differs from the PrusaSlicer window by a few minutes: compare variants with each other, not with the GUI number.
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": {
"path": "<path>",
"variants": "<variants>"
},
"name": "compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to an .stl, .3mf or .obj file. | |
| presets | No | Preset names to use instead of the ones selected in PrusaSlicer (user or system presets). Omit to use the selected ones. | |
| variants | Yes |