Slice (after flattening the inheritance chain)
bambu_sliceSlices 3D models with BambuStudio CLI; flattens presets to avoid default fallback, then reports layer count, print time, filament weight, and override audit results.
Instructions
Slices with the BambuStudio CLI and reports real statistics: layer count, print time, filament weight. Presets are flattened before they are passed to the CLI; feeding the raw presets to the CLI makes every inherited parameter fall back to the built-in default (BambuStudio#1704), so do not call the CLI directly. After slicing, it reads the settings that actually took effect back from the output and audits each override you requested; an overrideAudit entry with honoured = false was not applied. Starts a child process and writes a .gcode.3mf to the configured output directory. It does not send anything to a printer or start a print.
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": {
"modelPath": "<modelPath>"
},
"name": "bambu_slice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plate | No | ||
| modelPath | Yes | Absolute path to the model file; it must be inside an allowed model directory. | |
| overrides | No | Parameters to override; each key is a BambuStudio setting name (e.g. layer_height, sparse_infill_density). | |
| placement | No | ||
| machinePreset | No | ||
| processPreset | No | ||
| reportSettings | No | Read back the values these parameters actually took in the output. Use it to confirm the slice really used the preset values rather than the slicer's built-in defaults. | |
| filamentPresets | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| stats | No | ||
| reason | No | ||
| warnings | No | ||
| outputPath | No | ||
| stderrTail | No | ||
| overrideAudit | No | ||
| appliedSettings | No | The actual values in the output of the parameters requested by reportSettings. |