slice_model
Build and slice Bambu Studio projects from 3D meshes headlessly, producing 3MF files and reports with print time, filament usage, and problems. Never prints.
Instructions
Build a Bambu Studio project from meshes, slice it headless and verify the result.
Writes <output_dir>/.3mf (saved by Bambu Studio itself, G-code inside) and -report.md. Returns time, grams per filament, purge, colour changes and 'problems'. object_type picks process and settings; auto_adjust adds supports/brim when the geometry needs them; 'settings' (global) always wins. Never prints.
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": {
"objects": "<objects>",
"output_dir": "<output_dir>",
"printer": "<printer>"
},
"name": "slice_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| nozzle | No | ||
| arrange | No | ||
| objects | Yes | ||
| printer | Yes | ||
| process | No | ||
| settings | No | ||
| filaments | No | ||
| output_dir | Yes | ||
| auto_adjust | No | ||
| object_type | No |