Slicewise
v0.1.0Pre-print checks for Bambu Studio: GUI-faithful CLI slicing, override audit, printability.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
bambu_get_status Get Bambu Studio companion status
Reports the BambuStudio data directory, whether the slicer executable is available, preset counts, the machine and filaments currently selected in Studio, the allowed model directories, and the integration level of each model platform. Use it first to see what this server can do on this machine. No side effects.
bambu_list_presets List presets
Lists machine, process or filament presets. By default only presets selectable in the UI are returned; intermediate presets that exist only to be inherited from (e.g. fdm_process_common) are filtered out. Names listed here do not show real setting values; use bambu_resolve_preset for that. No side effects.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
includeAbstract | boolean | Whether to include intermediate presets that exist only to be inherited from and cannot be selected in the UI. Defaults to false. |
limit | integer | |
search | string | Filter by a case-insensitive substring of the preset name. |
bambu_resolve_preset Flatten a preset inheritance chain
Flattens a preset's inherits chain into the complete settings and records which level each value comes from. A BambuStudio leaf preset usually declares only a few dozen keys and inherits everything else from its parents, so to know the real value of any parameter you must look at the flattened result, not the leaf preset file. Use this whenever you need an actual setting value. No side effects.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
name * | string | |
keys | array | Return only these parameters. Omit to return all of them (a process preset has about 200 keys). |
bambu_compare_presets Compare two presets
Flattens two presets of the same kind and lists the settings that differ. Use it to answer questions like "what exactly is the difference between 0.20 Standard and 0.20 Strength" without reading four levels of JSON by hand. No side effects.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
left * | string | |
right * | string | |
limit | integer |
bambu_describe_parameters Explain parameters and their trade-offs
Explains what a parameter does, its unit, its typical range, the cost of raising or lowering it, and related parameters. Call this before changing any parameter, instead of tuning by what merely sounds reasonable. No side effects.
| Parameter | Type | Description |
|---|---|---|
group | string | |
keys | array |
bambu_diagnose Diagnose a print failure from its symptom
Takes an observed symptom (warping, stringing, layer separation, elephant's foot, holes in the top surface, ...) and returns an ordered list of remedies, each with its mechanism, a suggested value and its cost. Use it when the user describes what went wrong rather than which parameter to change; apply one remedy at a time. If no known symptom matches, it says so instead of guessing. It also points out problems that no parameter can fix. No side effects.
| Parameter | Type | Description |
|---|---|---|
material | string | The material, e.g. PLA / ABS / PETG / TPU; a material-specific note is returned when one exists. |
symptom | string | The symptom in natural language, e.g. "the bottom layer bulges outward" (elephant's foot). Chinese descriptions are matched too. |
symptomId | string | A known symptom id; skips text matching. |
bambu_plan_settings Plan settings for a goal
Given what you want (safe and failure-free / fast / strong under load / good surface / economical), returns ordered parameter adjustments grouped by what they counter: adhesion and warping, nozzle collisions, surface quality, structural strength, time, filament. Each move includes its mechanism, a suggested value, its cost, and **the actual value in the current preset and its shape** (per-extruder parameters must be overridden with an array; a scalar is silently not applied). If modelPath is given, a printability analysis runs first and conditional adjustments are added based on the geometry.…
| Parameter | Type | Description |
|---|---|---|
filamentPreset | string | |
goal | string | What you want, in natural language, e.g. "don't let it fail, print slowly at high quality" or "in a hurry". Chinese goals are matched too. |
goalId | string | Specify the goal directly; skips text matching. |
material | string | PLA / PETG / ABS / ASA / TPU; a material-specific note is returned when one exists. |
modelPath | string | If a model is given, a printability analysis runs first and conditional adjustments are added based on the geometry (e.g. a wider brim when the base area is too small). |
processPreset | string | Defaults to the preset currently selected in Bambu Studio. |
bambu_optimize_print_in_place Create a stabilised print-in-place preset
Creates an auto-stabilised copy of the given (or currently selected) process preset that can be used directly in Bambu Studio. Use it when small print-in-place parts detach from the bed or get dragged off by the nozzle. It applies exactly: first-layer outer wall 20 mm/s, first-layer infill 30 mm/s, outer wall capped at 60 mm/s, slowdown for overhangs, avoid crossing printed walls, Monotonic line, and ironing and Fuzzy Skin turned off. If the source is an existing user preset, its leaf-level calibrations (dimensions, elephant's foot, etc.) are kept, but the new file still inherits directly from…
| Parameter | Type | Description |
|---|---|---|
includeBrimEars | boolean | Whether to also enable 5 mm Brim Ears. Defaults to false, because the moving clearances must be checked in the first-layer preview first. |
name | string | Name of the new user preset. Defaults to the source preset name with an auto-stabilised suffix appended. |
overwrite | boolean | Whether to replace a preset with the same name if one already exists. Defaults to false. |
processPreset | string | The source process preset; defaults to the one currently selected in Bambu Studio. An existing user preset may be given. |
bambu_save_user_preset Save a user preset to Bambu Studio
Creates a custom preset that inherits from a system preset, in the BambuStudio user profile directory; it appears in the dropdown after Bambu Studio is restarted. BambuStudio has no plugin API (see bambulab/BambuStudio#9614), so this is the only way to get parameters tuned by an AI into the GUI. Writes a file; an existing preset with the same name is never silently overwritten.
| Parameter | Type | Description |
|---|---|---|
inherits * | string | Name of the system (vendor) preset to inherit from. |
kind * | string | |
name * | string | Name of the new preset; it appears in the Bambu Studio dropdown. |
overrides * | object | Parameters to override; each key is a BambuStudio setting name (e.g. layer_height, sparse_infill_density). |
overwrite | boolean | Whether to replace an existing preset with the same name. Defaults to false. |
bambu_slice Slice (after flattening the inheritance chain)
Slices with the BambuStudio CLI and reports real statistics: layer count, print time, filament weight. Presets are flattened before they are passed to the CLI; feeding the raw presets to the CLI makes every inherited parameter fall back to the built-in default (BambuStudio#1704), so do not call the CLI directly. After slicing, it reads the settings that actually took effect back from the output and audits each override you requested; an overrideAudit entry with honoured = false was not applied. Starts a child process and writes a .gcode.3mf to the configured output directory. It does not send…
| Parameter | Type | Description |
|---|---|---|
modelPath * | string | Absolute path to the model file; it must be inside an allowed model directory. |
filamentPresets | array | |
machinePreset | string | |
overrides | object | Parameters to override; each key is a BambuStudio setting name (e.g. layer_height, sparse_infill_density). |
placement | object | |
plate | integer | |
processPreset | string | |
reportSettings | array | Read back the values these parameters actually took in the output. Use it to confirm the slice really used the preset values rather than the slicer's built-in defaults. |
bambu_inspect_model Inspect model geometry
Parses an STL (binary or ASCII), 3MF or OBJ and reports triangle count, bounding box, volume, surface area, and whether the mesh is closed. The format is detected from the file content, not the extension. For 3MF and OBJ it also reports the part count and part list (3MF coordinates have the placement transform applied; OBJ is split into parts by o / g, and Tinkercad's colour export is OBJ). Reads only files inside the allowed directories. No side effects.
| Parameter | Type | Description |
|---|---|---|
modelPath * | string |
bambu_check_printability Check printability
Finds problems visible before slicing: exceeding the build volume, floating bodies that do not touch the plate, an unclosed mesh, the share of steep overhangs, too small a base area, too high an aspect ratio, features that are too thin, and warping risk on large bottom surfaces. Each finding lists the related parameters. Floating detection splits the mesh into shells, merges shells that touch or intersect into bodies, merges shells fully enclosed by another body into it, then checks whether each body reaches the plate and measures the gap to the nearest body: a narrow gap means the parts were…
| Parameter | Type | Description |
|---|---|---|
modelPath * | string | |
buildVolume | object | Defaults to 256×256×256 mm (Bambu Lab P1S / X1C). |
lineWidthMm | number | |
overhangThresholdDegrees | number | Angle from vertical; 0° is a vertical wall, 90° is a horizontal ceiling. Defaults to 45. |
bambu_measure_clearance Measure clearance between parts
Measures the smallest clearance between the parts in a 3MF or OBJ, to judge whether a print-in-place mechanism will fuse when printed. Parts that touch each other are first merged into rigid bodies before comparing, because Bambu also stores the colour-change segments of a single solid as separate parts; without merging, one piece would be reported as "clearance 0". When the clearance is too small it suggests compensation, distinguishing outer contours from holes (the enclosed side is a hole to the slicer and is controlled by a different parameter). STL has no part boundaries, so it cannot be…
| Parameter | Type | Description |
|---|---|---|
modelPath * | string | Absolute path to a 3MF or OBJ file; it must be inside an allowed model directory. |
minimumClearanceMm | number | The smallest clearance that prints reliably. Defaults to 0.15 (the practical lower limit for PLA with a 0.4 mm nozzle). |
reportThresholdMm | number | Part pairs farther apart than this are left out of the report. Defaults to 2 mm. |
samplingMm | number | Surface sampling spacing; smaller is more accurate but slower. Defaults to 0.2 mm. |
bambu_compose_model Compose a 3MF with negative / modifier parts
Builds a Bambu project 3MF from a base body STL plus extra parts. A negative part (negative_part) cuts away where it overlaps, a modifier (modifier_part) applies different settings to its region, and support_blocker / support_enforcer control support. In a Bambu model each of these is just one more part with a label, so no geometry (boolean) engine is needed. The output can be read back item by item with bambu_inspect_project, or passed straight to bambu_slice. Writes a file to the output directory.
| Parameter | Type | Description |
|---|---|---|
basePath * | string | Path to the base body STL; it must be inside an allowed model directory. |
name * | string | Output file name (.3mf is appended automatically) and object name. Must not contain path separators. |
parts * | array | |
baseName | string | Display name of the base body part. Defaults to body. |
plateCentre | object | Where the object lands on the plate. Defaults to the centre of a 256×256 plate (128, 128). |
bambu_inspect_project Read back the part structure of a 3MF
Reads the objects and parts from a Bambu project 3MF, including each part's subtype and per-part settings. Use it to verify that what was written is really in the file; this is the key advantage of working with files over the GUI: you can compare item by item instead of only looking at the screen. It also flags subtypes that BambuStudio does not recognise. No side effects.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Path to a Bambu project 3MF. |
bambu_search_models Search for 3D models
Searches for models across platforms. Thingiverse uses its official API (requires THINGIVERSE_TOKEN). MakerWorld and Printables have no official public API, so for them only a search link is returned for a person to open; this is a deliberate downgrade: no scraping or private endpoints pretending to be an API. Do not claim to have searched or downloaded models from those platforms. Does not download any model. Accesses the internet.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer | |
sources | array | Restrict to these platforms; omit to query all. See catalogs in bambu_get_status for the available values. |