slice
Generate Bambu Studio 3MF print files from STL/OBJ/3MF models using presets or overrides, with bed centering, supports, prime tower, and per-filament time/weight output.
Instructions
Slice models with the Bambu Studio CLI. Presets by name or file, with overrides. Centres STL/OBJ on the bed (exact position, no auto-arrange), sets plate type, supports and prime tower. Returns the output 3MF path, time and weight per filament, and the nozzle map check for dual-nozzle printers.
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>",
"machine": "<machine>",
"process": "<process>",
"filaments": "<filaments>"
},
"name": "slice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plate | No | Plate to slice (0 = all, default). | |
| scale | No | Uniform factor or [sx, sy, sz]. | |
| center | No | Centre STL/OBJ models on the bed (default true). | |
| lift_z | No | Lowest point height in mm (default 0). | |
| models | Yes | Model files (STL/OBJ/3MF). STEP is not supported. | |
| orient | No | ||
| output | No | Output .3mf path (default next to the first model: <name>.gcode.3mf). | |
| rotate | No | [rx, ry, rz] degrees, applied X then Y then Z. | |
| arrange | No | ||
| machine | Yes | Machine preset name or JSON path. | |
| process | Yes | Process preset name or JSON path. | |
| position | No | [x, y] centre position in mm instead of the bed centre. | |
| supports | No | enable, type, style, threshold_angle, on_build_plate_only, filament, interface_filament, top_z_distance, bottom_z_distance, interface_top_layers, interface_bottom_layers, interface_spacing, interface_pattern, object_xy_distance. | |
| filaments | Yes | Filament preset names or JSON paths, in filament order. | |
| timelapse | No | ||
| timeout_s | No | ||
| plate_type | No | curr_bed_type, e.g. 'Textured PEI Plate'. | |
| prime_tower | No | enable, x, y, width. | |
| filament_ids | No | Filament (1-based) per STL/OBJ model. Default all 1. | |
| filament_map | No | Dual nozzle: nozzle per filament, 'left'/'right' or 1/2. Checked after slicing. | |
| keep_configs | No | Keep the generated preset JSON files next to the output. | |
| machine_overrides | No | ||
| process_overrides | No | Process keys to set, e.g. {"layer_height": 0.16}. | |
| filament_overrides | No | Dict for all filaments, or a list of dicts per filament. |