slice_with_template
Use a named template from the local registry to slice STL or 3MF files and prepare 3D print jobs for Bambu Lab printers.
Instructions
Slice an STL or 3MF using a named template from the local registry. This is a higher-level wrapper around slice_stl for template-based workflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stl_path | Yes | Path to the STL or 3MF file to slice | |
| template_name | Yes | Named template from the local registry. | |
| template_dir | No | Optional template directory override when resolving template_name. | |
| bambu_model | Yes | REQUIRED: Bambu Lab printer model. Ask the user if not known. Using the wrong model can damage the printer. | |
| slicer_type | No | Type of slicer to use. Bambu-compatible choices (bambustudio, orcaslicer, orcaslicer-bambulab) export sliced 3MF; aliases such as fulu-orca and orca-studio are accepted. | |
| slicer_path | No | Path to the slicer executable (default: value from env) | |
| slicer_profile | No | Explicit slicer profile/config file. Overrides the named template only when provided in the tool call. | |
| nozzle_diameter | No | Nozzle diameter in mm (default: 0.4) | |
| bed_type | No | Bed plate type for slicing (default: textured_plate). SuperTack is accepted only for pre-sliced print jobs until the BambuStudio CLI identifier is verified. | |
| use_printer_filaments | No | When true, and no explicit slicer profile or load_filaments override is provided, use the printer's current or first loaded AMS filament as the slicer filament profile. | |
| host | No | Hostname or IP of the printer (default: value from env) | |
| bambu_serial | No | Serial number (default: value from env) | |
| bambu_token | No | Access token (default: value from env) | |
| load_filaments | No | Override filament profiles. Semicolon-separated paths to filament JSON configs. | |
| load_filament_ids | No | Optional filament-to-object mapping string. | |
| ensure_on_bed | No | Lift floating models onto the bed. | |
| arrange | No | Auto-arrange objects on the build plate. | |
| orient | No | Auto-orient model for optimal printability. | |
| repetitions | No | Number of copies to print. | |
| scale | No | Uniform scale factor. | |
| rotate | No | Z-axis rotation in degrees. | |
| rotate_x | No | X-axis rotation in degrees. | |
| rotate_y | No | Y-axis rotation in degrees. | |
| min_save | No | Produce smaller output 3MF. | |
| skip_modified_gcodes | No | Ignore stale custom gcodes in the 3MF. | |
| slice_plate | No | Which plate index to slice. 0 = all plates. |