slice
Converts .3mf projects or STL files into .gcode.3mf using selected printer, process, and filament presets, returning print time, filament usage, layers, support status, and warnings.
Instructions
Slice a project .3mf (from prepare_project or saved in Bambu Studio) or one or more STL files and write a .gcode.3mf. Returns per plate and in total: print time, filament in grams and metres, layer count, whether support material was generated, and the slicer's warnings.
For a project the stored presets are used; pass printer/process/filament or settings only to change them.
For STL files printer and filament are required. Check warnings and support_used before telling the
user the part is ready to print: support is only generated when the process enables it.
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>"
},
"name": "slice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | ||
| orient | No | ||
| output | No | ||
| arrange | No | ||
| printer | No | ||
| process | No | ||
| bed_type | No | ||
| filament | No | ||
| settings | No | ||
| timeout_s | No |