slice_hook
Generate named G-code 3MF files from STL or mesh-only 3MF using OrcaSlicer/Bambu Studio CLI, without uploading or printing.
Instructions
Slice an STL or mesh-only 3MF into {part}-{variant}-{rev}.gcode.3mf via OrcaSlicer / Bambu Studio CLI. Does not upload or print. Bare STL is allowed here only.
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": {
"inputPath": "<inputPath>",
"part": "<part>",
"variant": "<variant>",
"rev": "<rev>"
},
"name": "slice_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | Yes | ||
| part | Yes | ||
| plate | No | ||
| orient | No | ||
| arrange | No | ||
| variant | Yes | ||
| settings | No | Semicolon-joined printer;process JSON presets (required for bare STL) | |
| filaments | No | ||
| inputPath | Yes | Local .stl / .step / mesh .3mf | |
| outputDir | No |