orcaslicer-mcp

v0.1.29
io.github.MaxEllis/orcaslicer-mcp Checked 16 hours ago Published 7 days ago

Work a running OrcaSlicer with AI: slice, tune, and understand what each setting costs

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_status Get OrcaSlicer status

Start here: a snapshot of the OrcaSlicer session (build or plugin, project, active presets and their unsaved edits, whether the last slice still holds); for slice numbers use get_slice_status. Also lists which keys of each active preset are modified (dirty) and whether a slice is running. Read-only. Call it first to orient before slicing or editing, to see which settings drift from their preset, or to check slice_result_valid before trusting earlier stats. On fork v2.4.2-mcp.15 and later `project` is {name, path, dirty}: path is empty until the project has been saved,…

get_config Get config values

Read the current value of settings (all, or only `keys`); with `keys`, `about` also says what each one means, its unit, range and choices. Values come back as text, merged across the active print, filament and printer presets: a per-filament setting such as hot_plate_temp holds one value per loaded filament slot, '70,100,70'. With by_slot those come back as {slot: value} instead, so slot 2's bed temperature is config['hot_plate_temp']['2'], and `slots` says how many there are. Name the keys you need: the whole config is several hundred settings. describe_setting gives the…

ParameterTypeDescription
by_slotbooleanReturn each per-filament setting as one value per filament slot, {'1': '70', '2': '100'}, numbered as the sidebar numbers them, instead of the merged '70,100' text. Other settings are unchanged.
keys

set_config Set config values

Change settings on the open project as unsaved edits, all or nothing; a key set to null goes back to its saved preset value; use apply_and_slice to also slice, or edit_preset to change a saved preset. Returns {applied, errors}; if any key is invalid the whole batch is rejected and nothing changes. Keys set to null are listed under `reverted` (or `already_saved` when they had no unsaved edit). With filament_slot the per-filament keys land in that slot's preset: OrcaSlicer binds the Filament tab to the slot first, as the slot's edit button does, and the reply names the…

ParameterTypeDescription
changes *objectMap of OrcaSlicer config key to new value, e.g. {'layer_height': 0.2, 'sparse_infill_density': '15%'}. Values must match each setting's type; percent settings take strings like '15%'. Discover valid k…
filament_slotWrite the per-filament keys to this slot's filament preset (1-based, as the sidebar numbers the slots; get_filament_slots lists them) instead of the preset open in the Filament tab. Needs the OrcaSlic…

slice Start slicing

Start a slice and return at once without waiting; use slice_and_wait when you want the finished time and filament in the same call. The reply is 'started' (a slice began), 'already_valid' (the plate is unchanged and the last result still holds), or a conflict if a slice is already running. Fire-and-forget: poll get_slice_status for progress and stats, or cancel_slice to stop it. Prefer slice_and_wait when you want the finished stats back in one call.

get_slice_status Get slice status

Read the state, time and filament of the current or last slice, and whether it is out of date; for the warnings alone use get_slice_warnings. state is slicing, done, error or idle; stats (print time and filament use) appear when it is done, with any warnings or errors. Read-only. Poll this after slice to follow progress and read the result; 'idle' means no slice has run or it was cancelled. For only the pass/fail warnings use get_slice_warnings; for a per-feature time and filament breakdown use get_slice_breakdown. When the outcome store holds enough finished prints,…

get_slice_warnings Get slice warnings

Read only the warnings and errors of the last slice and whether it still holds; the quick check that a fix cleared a warning. NOTE: only as complete as the API exposes. On the current fork build this may report valid with an empty warnings list even when the GUI shows a plate-boundary toast - the fork must populate the plater warning list (tracked as the fork batch). Once it does, this reports the real warnings with no change here.

get_slice_breakdown Get slice time/flow breakdown

Read where the time and filament of the last slice go, per feature (walls, infill, support), with a check for speeds capped by the flow limit. Returns per-role time/filament + speed/flow ranges, global time-weighted metric distributions, per-layer aggregates, and a prediction_check flagging where the profile's speed was silently throttled at the flow ceiling ('clamped'). Answers 'which feature is the time hog' directly instead of by trial slicing. Degrades to {"available": false, "reason": ...} on fork builds that don't emit the breakdown, or when there is no valid sl…

cancel_slice Cancel running slice

Stop a running slice, or clear a slice stuck in 'slicing'; safe to call when nothing is running.

slice_and_wait Slice and wait for result

Slice the current plate and wait for the finished time, filament and warnings; the usual way to slice (slice returns at once instead). If the plate is already sliced and unchanged, it returns the existing result without re-slicing. With enough recorded prints, `forecast` says how long it will really take on this printer (see get_slice_status). This is the usual way to slice when you want the outcome immediately. For a non-blocking start, use slice then poll get_slice_status; to sweep one setting across values, use compare_settings.

ParameterTypeDescription
timeoutintegerMaximum seconds to wait for the slice to finish before returning the last known state. Default 300; raise it for large or textured plates that slice slowly.

apply_and_slice Apply config and slice

Change settings and slice in one call, returning both; use set_config and then slice_and_wait to keep the steps apart. Returns {applied, errors, result}. The changes are atomic (any invalid key rejects the whole batch) and unsaved, exactly like set_config, so they revert if the preset is reselected. Use this to test the effect of a tweak in a single call. Use set_config then slice_and_wait to keep the steps separate, or compare_settings to try several values of one key.

ParameterTypeDescription
changes *objectMap of OrcaSlicer config key to new value to apply before slicing, e.g. {'layer_height': 0.2}. Same format and validation as set_config (null puts a key back to its saved preset value); discover keys…

compare_settings Compare settings

Slice once per value of a single setting and return the raw numbers, putting the value back after; compare_slices adds deltas and a verdict. The original value is put back even on error. Use it for a quick sweep of a single key. To compare named combinations of settings with ready-to-relay deltas and a verdict, use compare_slices instead. Like compare_slices it adds one line to OrcaSlicer's MCP panel, not one per trial.

ParameterTypeDescription
key *string
values *array
extra

compare_slices Compare slice variants

Slice under 2-8 named combinations of settings and compare time, filament and warnings with ready-made deltas and a verdict, putting the settings back after; compare_settings only sweeps one setting. Each variant is {"name": str, "changes": {setting: value}}; changes={} means the current config as-is (a natural baseline row). Applies each variant over the ORIGINAL config (resetting between variants, so they don't stack), slices it, then restores your config exactly as it was - nothing is left changed (slice validity is left false, as after any un-resliced edit). Retur…

ParameterTypeDescription
variants *array
baseline
detailboolean
timeoutinteger

list_objects List plate objects

List the objects in the project with their ids, names, sizes, placement and plate; the object tools take these ids. Each has a stable id, name, size_mm, transform (offset/rotation/scale) and, on fork v2.4.2-mcp.13 and later, the 0-based plate it sits on (-1 when it is off every plate).

set_object_config Set per-object config

Change settings for one object only, all or nothing; use set_config to change them for the whole plate. Example: {"wall_loops": 4, "sparse_infill_density": "30%"}.

ParameterTypeDescription
changes *object
object_id *integer

duplicate_object Duplicate object

Add one copy of an object next to it on the plate; call it again for more copies.

ParameterTypeDescription
object_id *integer

delete_object Delete object from plate

Remove one object from the plate by id; this cannot be undone through these tools. The other objects keep their ids. Call list_objects first to get the id. Deleting leaves the last slice invalid, so re-slice afterwards. To drop just one copy made with duplicate_object, pass that copy's id.

ParameterTypeDescription
object_id *integerInteger id of the object to remove, taken from the 'id' field of list_objects (not the array index or the file name).

transform_object Transform object

Move, rotate or scale one object by id; use move_object_to_plate to change its plate, or arrange_plate to tidy the whole plate. translate=[dx,dy,dz] mm (relative), rotate=[rx,ry,rz] degrees (relative), scale=[sx,sy,sz] absolute factor. Provide at least one. On fork v2.4.2-mcp.13 and later the object then belongs to whichever plate it sits on, as after a drag in the window; list_objects shows the plate. To send an object to another plate, move_object_to_plate is simpler than working out coordinates.

ParameterTypeDescription
object_id *integer
rotate
scale
translate

arrange_plate Arrange plate

Let OrcaSlicer pack every object on the unlocked plates (Arrange all); use transform_object to move just one. It runs as a background job: poll get_job_status until idle. With several plates this is OrcaSlicer's "Arrange all": it re-packs the objects of every unlocked plate together and deletes plates left empty at the end, which undoes a one-part-per-plate layout. To shift one object, use transform_object instead.

auto_orient Auto-orient objects

Let OrcaSlicer turn every object to its best printing orientation; use transform_object to rotate one by a set angle. It runs as a background job: poll get_job_status until idle.

list_plates List plates

List the project's plates with their objects and which one is current; the plate tools take the 0-based index shown here. For each plate: its 0-based index, name, whether it is current (the one slice, get_gcode, render_plate and get_job_status act on), lock state, build volume and the objects it holds. Also says how many plates the build allows (max) and whether one can be added or deleted right now. Read-only. Plate numbers shown in the OrcaSlicer window are 1-based; every tool here takes the 0-based index from this list. Needs fork v2.4.2-mcp.13 or later.

get_printer_slots Get printer trays

Read the printer's filament trays: a Bambu Lab printer's AMS and external spool (instant), or an Elegoo Centauri Carbon 2's CANVAS unit (slow, up to about 18 s). Read-only. The reply says which `kind` of printer answered. On a Bambu Lab printer (kind "bambu": the printer selected in OrcaSlicer's Device tab, read from the state OrcaSlicer's own connection keeps, nothing sent to the printer) each tray has its label as the AMS panel shows it (A1, HT-A, Ext), status (loaded, unknown, empty), filament_type as the AMS words it (ASA-Aero, PLA-CF, ...), filament_name, brand, colou…

get_filament_slot_mapping Get filament slot mapping

Show which printer tray each filament of the plate would print from on the next Send, and whether that tray holds what the slot's preset says (Bambu Lab AMS, or an Elegoo Centauri Carbon 2's CANVAS); read-only. The check to run before telling the user a plate is ready to send. The filaments listed are the ones on the plate the next Send would use, each with its 0-based index (on a Bambu Lab printer also `slot`, the 1-based number the sidebar shows), type, preset name, colour, the tray it maps to (or null), the source of that choice and any warnings. valid is true when that Sen…

set_filament_slot_mapping Set filament slot mapping

Choose which CANVAS tray each filament prints from on the next Send (Elegoo Centauri Carbon 2 only); it starts nothing. Returns the same reply as get_filament_slot_mapping, so check valid and problems. Needs fork v2.4.2-mcp.14 or later. Not for Bambu Lab printers: there the tray is chosen in OrcaSlicer's Send dialog, which keeps nothing this tool could set; get_filament_slot_mapping shows what it will pre-fill. It reads the printer when no slot list is cached, so it can take up to about 18 seconds, and OrcaSlicer's API serves one request at a time meanwhile, so other t…

ParameterTypeDescription
mapping *arrayOne entry per filament of the plate the next Send uses (the indexes get_filament_slot_mapping lists): {filament: 0-based filament index, canvas_id, tray_id} from get_printer_slots.

list_printers List the Device tab's printers

List the printers OrcaSlicer's Device tab knows and say which one is selected. Read-only. These are the printers bound in OrcaSlicer's Device tab, separate from the printer presets: the account's cloud printers and the LAN printers whose access code OrcaSlicer holds. The selected one is the Bambu Lab printer the tray tools (and status, on builds that serve it) read. Each printer has id, name, model, connection (lan or cloud), online (present as OrcaSlicer last saw it), connected (OrcaSlicer holds a live connection, which only the selected printer can), printing and sel…

select_printer Select a printer in the Device tab

Select a printer in OrcaSlicer's Device tab, as clicking it there does, so the Bambu Lab printer tools read that one. Changes OrcaSlicer's selection only: nothing is sent to a printer, and a print the previously selected printer is running carries on (OrcaSlicer merely disconnects from it). The printer must be one list_printers shows; a LAN printer OrcaSlicer has no access code for is added in the Device tab by hand. Selecting the printer already selected changes nothing. After a switch OrcaSlicer connects to the printer, which takes a few seconds: the tool waits up to…

ParameterTypeDescription
printer *stringThe printer to select: its id from list_printers, or its name as the Device tab shows it (exact; case does not matter).
wait_snumberHow long to wait for OrcaSlicer to connect to the printer after selecting it, in seconds; 0 returns at once.

add_plate Add plate

Add an empty plate, like the toolbar's Add plate button, so parts can print separately. Returns the new plate's 0-based index for move_object_to_plate and select_plate. Use it when parts should print separately: load them, add a plate, move the second part across with move_object_to_plate, then select_plate and slice each one. A plate cannot be added while a slice is running (409) or at the build's plate limit (422). On OrcaSlicer 2.5, the 2nd, 5th and 10th plates widen the plate grid, which clears every plate's slice result, as the toolbar button does: slice again af…

ParameterTypeDescription
selectbooleanMake the new plate the current one, as the toolbar button does. Pass false to keep working on the plate that is current now.

select_plate Select plate

Make a plate the current one, so slicing, G-code, renders and slice status act on it. get_slice_status then reports that plate's own result: its stats if it is still sliced, otherwise idle with "plate N is not sliced". Switching plates leaves unsaved config overrides alone; it changes only which plate is sliced. Selecting the plate that is already current is a no-op.

ParameterTypeDescription
index *integer0-based plate index from list_plates (the window shows plates 1-based).

delete_plate Delete plate (its objects are parked off-plate)

Delete a plate; the objects on it are parked beside the bed, not deleted. OrcaSlicer parks them as the toolbar's delete does, and the reply says how many were moved off-plate (objects_moved_off_plate). Use move_object_to_plate to put them somewhere printable. OrcaSlicer parks them where the next plate appears, so an add_plate straight after a delete picks them back up. The only plate cannot be deleted (422 last_plate). Call list_plates first for the index; this cannot be undone through the API.

ParameterTypeDescription
index *integer0-based plate index from list_plates. Later plates shift down one index.

move_object_to_plate Move object to plate

Move an object onto another plate by its index; simpler than transform_object for changing plates. Coming from a plate it keeps its position relative to that plate (front-left of plate 1 lands front-left of plate 2); coming from off-plate (parked beside the bed) it lands at the destination's centre. If it then overlaps a part, shift it with transform_object; arrange_plate would re-pack every plate together. list_objects reports each object's plate (-1 when off every plate). Moving leaves both plates' slices invalid, so re-slice. An object already on that plate is left…

ParameterTypeDescription
object_id *integerInteger id of the object, from the 'id' field of list_objects.
plate *integer0-based index of the destination plate, from list_plates or add_plate.
instanceintegerWhich copy to move when the object has several (duplicate_object); 0 is the original.

get_project Get project file state

Read the open project as a file (name, path, unsaved changes); check it before save_project, open_project or new_project. Also reports whether it has been saved, plate and object counts, the preset groups with unsaved edits (modified) and how many entries File > Recent holds; path is empty until the first save. Read-only. Needs fork v2.4.2-mcp.15 or later.

save_project Save project (.3mf, can replace a file)

Save the open project as a .3mf with its plates and settings (File > Save or Save As); save_gcode saves the sliced G-code instead. It writes exactly what File > Save / Save Project As writes: plates, object placement, per-object and per-plate settings, height-range modifiers, slot presets and colours, and unsaved config overrides. No dialog opens; OrcaSlicer's own prompts are answered from the arguments. To create a new project file, call new_project and then save_project with a path. Afterwards get_status reports the new path and dirty false, and the file joins File >…

ParameterTypeDescription
overwritebooleanReplace an existing file at `path`. Off by default: a collision is an error, never a silent clobber. Saving the project back onto its own path is a plain Save and needs no overwrite.
pathWhere to save, a .3mf path on the OrcaSlicer host (Save As). None saves to the project's own path (Save); that fails with no_project_path when the project has never been saved.

open_project Open project (replaces the open session)

Open a saved .3mf project with its plates and settings, replacing the open one; load_model only adds a model's geometry. As with File > Open Project, plates, objects, per-object and per-plate settings, slot presets and colours all come back. Use open_recent_project for an entry of File > Recent and browse_projects to find project files in a folder. The two prompts OrcaSlicer would show are answered from the arguments, so nothing blocks. Unsaved preset overrides are dropped before the open because the project's config replaces them; the reply names those groups in disc…

ParameterTypeDescription
path *stringA .3mf project on the OrcaSlicer host.
if_unsavedstringWhat to do when the current project has unsaved changes: 'fail' (default) refuses and changes nothing, 'save' writes it to its own path first (fails with no_project_path if it has none), 'discard' thr…
presetsstring'project' (default) selects the printer, print and filament presets stored in the project, as OrcaSlicer does. 'keep_current' opens the project and then selects the presets that were active before the…

open_recent_project Open a recent project (replaces the open session)

Open an entry of File > Recent by its position in list_recent_projects; open_project takes a path instead. Same behaviour and arguments as open_project. The list can change between calls (a save or an open moves its file to the top), so list first and open straight after; a file no longer on disk answers file_not_found and forget_recent_project removes the entry. Needs fork v2.4.2-mcp.15 or later.

ParameterTypeDescription
index *integer0-based position in list_recent_projects (0 is the most recent).
if_unsavedstringWhat to do when the current project has unsaved changes: 'fail' (default) refuses and changes nothing, 'save' writes it to its own path first, 'discard' throws the changes away.
presetsstring'project' (default) selects the presets stored in the project; 'keep_current' selects the presets active before the call again.

new_project New project (replaces the open session)

Start a new, empty project (File > New Project) without a dialog. The unsaved-changes prompt is answered by if_unsaved. OrcaSlicer's second prompt, keep or discard modified presets, is answered with Keep: unsaved preset overrides carry over into the new project and the reply names them in kept_changes (select_preset drops them if that is not wanted). Follow with load_model and save_project to create a project file. Needs fork v2.4.2-mcp.15 or later.

ParameterTypeDescription
if_unsavedstringWhat to do when the current project has unsaved changes: 'fail' (default) refuses and changes nothing, 'save' writes it to its own path first (fails with no_project_path if it has none), 'discard' thr…
nameA title for the new project, shown in the window; 'Untitled' when omitted. The file name is chosen when save_project is called with a path.

list_recent_projects List recent projects

List File > Recent, most recent first, with the index that open_recent_project takes. For each entry: its path, project name, whether the file still exists, whether it is the open project, and its size and last-modified time. Read-only. Needs fork v2.4.2-mcp.15 or later.

forget_recent_project Remove an entry from recent projects

Remove an entry from File > Recent, or clear the list; the file on disk stays. By path or index. Useful after a file was deleted or moved outside OrcaSlicer. The reply names what was forgotten and returns the list as it is now. Needs fork v2.4.2-mcp.15 or later.

ParameterTypeDescription
allbooleanClear the whole list instead.
indexAlternatively, the entry's 0-based index from list_recent_projects.
pathThe entry's path as list_recent_projects shows it (any spelling of the same file works while the file exists).

browse_projects List project files in a folder

List the .3mf project files in one folder on the OrcaSlicer machine; list_recent_projects shows File > Recent instead. Not recursive, newest first: path, project name, size and last-modified time, and whether each is the open project. Read-only. Use it to find a project to open_project, or to pick a free name before save_project. Needs fork v2.4.2-mcp.15 or later.

ParameterTypeDescription
dirA folder on the OrcaSlicer host. None uses the open project's folder, or the folder OrcaSlicer's last file dialog used.

move_project_file Move or rename a project file (can replace a file)

Move or rename a .3mf project file on disk; the window follows when it is the open project. When it is the open project's file, the title, project name and File > Recent show the new path, and the next save_project writes there. Any other recent-list entry naming the old path is pointed at the new one. The file's content and the project's dirty state do not change. Fails with exists when something is already at `to` and overwrite is off; replacing it also needs Preferences > Remote API > 'Allow deleting and replacing project files' in OrcaSlicer. Needs fork v2.4.2-mcp.…

ParameterTypeDescription
path *stringThe .3mf file to move or rename, on the OrcaSlicer host.
to *stringIts new .3mf path (a new name in the same folder renames it).
overwritebooleanReplace an existing file at `to`. Off by default. The open project's own file is never replaced.

delete_project_file Delete a project file from disk

Delete a .3mf project file from disk for good; forget_recent_project only takes it off File > Recent. There is no trash, and the file leaves File > Recent too. Only .3mf files can be deleted this way, and never the open project's own file: new_project or open_project first. Confirm with the user before calling this on a file they did not just ask to remove. OrcaSlicer refuses it (blocked_by_remote_api_policy) unless the user ticked Preferences > Remote API > 'Allow deleting and replacing project files'. Needs fork v2.4.2-mcp.15 or later.

ParameterTypeDescription
path *stringThe .3mf file to delete, on the OrcaSlicer host.

get_job_status Get background job status

Check whether arranging or orienting is still running; wait for idle before reading positions or slicing. Read-only. arrange_plate and auto_orient start async jobs; poll this until it reports idle before you read object positions or slice, so you act on the settled layout rather than a mid-move state.

watch_events Watch OrcaSlicer events

Listen to OrcaSlicer's live events (slices, setting changes, projects opened) for a few seconds. Events: slice.*, config.changed and project.opened, over a bounded window.

ParameterTypeDescription
secondsinteger

find_config_keys Find config keys

Find setting keys that contain a piece of text, from the live settings; search_settings also matches labels and descriptions, offline. Helps discover among the ~600 keys.

ParameterTypeDescription
substring *string

diagnose_plate Diagnose plate issues

Start here when a plate won't slice or fit: status, objects, bed and skirt or brim settings and slice warnings in one call. One call instead of chaining status, objects and config. Slice warnings are only as complete as the fork exposes today (see get_slice_warnings). For a 'does it fit the bed' estimate, pair with check_placement.

check_placement Check object placement

Estimate before slicing whether every object, with its skirt or brim, fits the bed; get_slice_warnings has the exact verdict after. Returns per-object fit, expanded first-layer bbox, per-edge clearance (mm), and overflow. APPROXIMATE: uses the object footprint from size+offset, not the sliced toolpath (skirt arcs, half-line-width, travel/wipe excluded); single-instance objects only. At ~mm margins the true verdict needs get_slice_warnings - this is a fast first-pass.

consult Consult slicing knowledge

Look up curated slicing advice and saved notes for a goal or symptom; call it before choosing settings. ALWAYS call before deriving or changing settings for a user goal. Composes principles per situation, never returns preset bundles. Falls back to find_config_keys/web search if empty. When recommending, present 2-3 concrete options quantified with predicted print time and filament mass from real slice results (slice + status tools) - never adjectives alone.

ParameterTypeDescription
query *string

check_profile_physics Sanity-check profile physics

Check the live settings, plus optional proposed changes, against flow, temperature, geometry and cooling limits; run it before save_preset. Deterministic: it fetches the live config, overlays the optional `changes` and runs the math. RUN THIS BEFORE save_preset. verdict=blocked means DO NOT SAVE.

ParameterTypeDescription
changes

remember Save a note

Save a short note for future sessions (about a printer, the user or a project); consult finds it again. scope: 'machine:<printer>/<filament>', 'user', or 'project:<name>'. Local plain files; user-readable and deletable.

ParameterTypeDescription
note *string
scope *string

describe_setting Describe a setting

Explain one setting from its key: label, meaning, type, unit, allowed range and choices; works offline. Authoritative, from OrcaSlicer's own source: label, tooltip, type, unit, valid range, enum values and default. Read-only, so it works even when OrcaSlicer is not running. Use it to learn a setting's exact type and allowed values before writing it with set_config or edit_preset. To find candidate keys by keyword first, use search_settings.

ParameterTypeDescription
key *stringExact OrcaSlicer config key, e.g. 'layer_height' or 'sparse_infill_density'. Find keys with search_settings or find_config_keys. Unknown keys return an error.

search_settings Search settings

Find settings by words in their key, label or description, offline; describe_setting then explains one. Returns compact matches (key, label, category, short tooltip), ranked key and label matches first.

ParameterTypeDescription
query *string
limitinteger

load_model Load a model file

Load a model file (.stl, .obj, .3mf geometry, .step) from the OrcaSlicer machine onto the plate; open_project opens a saved project instead. The path is on the OrcaSlicer host. .step/.stp need fork v2.3.2-mcp.3 or later; large STEP files can take a minute to tessellate, and the call waits. A .3mf is imported as geometry only.

ParameterTypeDescription
path *string

select_preset Select preset

Switch the active print, filament or printer preset; without a filament slot this drops every unsaved edit. With `slot` (filament only), only that slot's filament preset changes, like picking it in the sidebar's combo for that slot, and no unsaved edits are discarded (set_filament_slot_preset does the same and can also set the slot's colour). On a single-filament printer slot 1 is the Filament tab's preset, so it behaves like the call without `slot` below. Needs a slicer build that lists 'preset_slot' in get_status capabilities; older builds would ignore the slot and s…

ParameterTypeDescription
name *stringExact name of an existing preset in that group, as returned by list_presets (e.g. '0.20mm Standard'). Unknown names are rejected.
type *stringWhich preset group to switch: 'print' (process/quality), 'filament' (material), or 'printer' (machine).
slotFilament only: the 1-based filament slot (extruder/tool, e.g. 1-4 on a 4-head toolchanger) to set. Omit to switch the preset open in the Filament tab.

save_preset Save preset (overwrites stored settings)

Save the current settings as a named user preset; edit_preset changes a stored preset in one step instead. It creates or updates the preset, visible in the GUI immediately. type = print|filament|printer. detach=True saves it standalone instead of inheriting the current base preset; use it when creating a filament preset for a DIFFERENT material than the one selected, otherwise the new preset inherits the base's filament_type and temperatures. Saving a filament preset under a new name normally moves EVERY slot that used the old preset to the new one (OrcaSlicer's own S…

ParameterTypeDescription
name *string
type *string
allow_temperature_pairsbooleanFilament only: save even though OrcaSlicer's temperature safety check finds the first-layer temperature far from the other layers' (its own 'Continue anyway?'). Only after the user has agreed to those…
detachboolean
filament_slotFilament only: save from this slot's preset (1-based, as the sidebar numbers the slots) and point only this slot at the saved name; other slots that used the same preset keep it. Needs the OrcaSlicer…

get_filament_slots Get filament slots

List the project's filament slots as the sidebar shows them: each slot's number, preset, filament type, vendor, colour, whether its preset is open in the Filament tab with unsaved edits, and which slots share a preset. Read-only. One row per slot, numbered from 1. `preset` is the slot's filament preset; `filament_type` and `vendor` come from that preset, so a slot whose preset is 'Generic ASA' shows vendor Generic, type ASA; `colour` is the project's colour for the slot. `shares_preset_with` names the other slots loaded with the same preset: a set_config or save_preset on any…

set_filament_slot_preset Set a slot's filament preset

Point one filament slot at a named preset, leaving the other slots alone and never dropping an unsaved edit; the slot keeps its colour unless keep_colour is false. On a multi-filament project it is the same as picking the preset in that slot's sidebar combo: no unsaved print, filament or printer edit is touched. On a one-filament project the slot is the Filament tab's preset, and switching it would drop every unsaved edit, so while there are any the call is refused (`unsaved_edits`, naming them) and nothing changes: save them or put them back first. The reply ends with `fi…

ParameterTypeDescription
name *stringExact name of a filament preset, as list_presets(type='filament') returns it.
slot *integerThe filament slot, 1-based as the sidebar numbers them.
keep_colourbooleanKeep the slot's current colour (the default). False sets the colour the preset carries as its default (default_filament_colour), when it has one.

list_presets List presets

List the print, filament and printer presets: the user's own and the selected ones, or all with include_system. Each with system/selected/visible flags. F12: by default returns only USER presets plus whatever is currently SELECTED - the built-in system presets are ~400 entries of noise. Pass include_system=True for the full list, and/or type='print'|'filament'|'printer' to restrict to one category. `hidden_system` reports how many system presets were filtered out.

ParameterTypeDescription
include_systemboolean
type

set_layer_height Set layer height

Turn adaptive layer height on or off for one object; set_height_range sets a fixed height over a Z band instead. mode='adaptive' (quality 0..1, higher = finer detail) generates an adaptive profile; mode='reset' (aliases: 'default', 'none') restores uniform layers.

ParameterTypeDescription
mode *string
object_id *integer
qualitynumber

set_height_range Set height-range config

Set a layer height over a Z band of one object; set_layer_height makes the whole object adaptive instead. For example 0 to 5 mm printed at 0.1 mm for finer detail near the base. Passing the same min_z and max_z again updates that band's height; clear=True removes every band on the object. Bands are per-object and invalidate the last slice, so re-slice afterwards. For a single height across the whole object use set_layer_height instead. Get the id from list_objects.

ParameterTypeDescription
object_id *integerInteger id of the target object, from list_objects.
clearbooleanIf True, remove all height-range overrides on the object and ignore the z and layer_height args.
layer_heightLayer height in mm to use within the band, e.g. 0.1. Required unless clear=True.
max_zUpper Z bound of the band in mm. Required unless clear=True.
min_zLower Z bound of the band in mm (object-relative). Required unless clear=True.

get_preset_config Get preset config

Read every setting of a named preset without selecting it; get_config reads the live settings. type = print|filament|printer.

ParameterTypeDescription
name *string
type *string

delete_preset Delete preset

Delete one of the user's presets (never a system preset or the selected one). type = print|filament|printer.

ParameterTypeDescription
name *string
type *string

edit_preset Edit preset (overwrites stored settings)

Change a stored preset and save it under the same name, after the physics check; set_config changes only the open project. It selects the preset, applies the changes atomically and saves under the same name. Runs the check_profile_physics gate first (F15) and refuses with error=physics_blocked if the changes would INTRODUCE a failing physics check (pre-existing failures do not block unrelated edits). For type='filament', checks that also depend on the currently selected PRINT preset (flow_ceiling, temp_vs_flow) do not block; they come back as cross_layer_warnings, beca…

ParameterTypeDescription
changes *object
name *string
type *string
allow_temperature_pairsbooleanFilament only: save even though OrcaSlicer's temperature safety check finds the first-layer temperature far from the other layers' (its own 'Continue anyway?'). Only after the user has agreed to those…

rename_preset Rename preset

Rename one of the user's presets; the renamed preset becomes the selected one. It copies the preset to new_name, selects the copy and deletes the original. System presets are read-only. Because it selects the renamed preset, this leaves it active and discards unsaved config overrides, the same as select_preset, and leaves the last slice invalid, so re-slice afterwards.

ParameterTypeDescription
new_name *stringNew name for the preset. Should not collide with an existing preset of the same type.
old_name *stringCurrent name of the user preset to rename, as shown by list_presets.
type *stringPreset group: 'print', 'filament', or 'printer'.

get_gcode Download sliced gcode

Return the last slice's G-code as text; save_gcode writes it to a file and records the slice.

describe_plate Describe plate placement from G-code

Describe from the G-code how each sliced part stands, touches the bed, overhangs, is supported and where its seams are; needs a finished slice. Machine-readable facts per object, so you can answer orientation and placement questions instead of guessing from Euler angles or a picture: how the part stands (flat / tilted / on an edge or corner, from first-layer contact versus its widest layer), the first-layer footprint as islands, where overhang extrusions concentrate by 10 mm height band, where support stands and where its interface touches the part, and which side the oute…

save_gcode Save G-code and record the slice

Save the last slice's G-code to a file and record the slice so the print can be learned from later; hand the path to the printer tools. The record (model, a fingerprint of the objects' names and sizes, full settings snapshot, and OrcaSlicer's time and filament estimates) goes in the local outcome store under that filename. When that file is printed, list_print_history (or klipper-mcp's recorder) matches the finished job by filename, so the real result joins back to these settings. Returns the saved path; hand it to klipper-mcp's start_print. Default filename: <object>_…

ParameterTypeDescription
filename

recall_prints Recall past prints of this model

Recall how past prints of this model turned out and with which settings; call it before slicing. Matches the current plate by geometry (or by model_name if given / the slicer is offline), returning each past print's result (success/cancelled/error), your recorded verdict (e.g. 'warped'), and the settings it was sliced with. Call this BEFORE slicing and tell the user anything relevant (a past warp, a failed layer height). Each row also carries failure_reason (the printer's own words, when known) and the slicer's estimates (est_time_s, est_filament_g). duration_s is Moon…

ParameterTypeDescription
limitinteger
model_name

render_plate Render plate image

Render a picture of the plate: the models before slicing (editor) or the toolpaths after it (preview). view="editor": the models on the bed BEFORE slicing - use to check orientation, plate contact, and first-layer footprint (an Euler triple is near-unreadable; this is the ground truth). view="preview": the sliced toolpaths colored by feature role AFTER a successful slice - support is visibly distinct, so use it to check where support actually went. angle: iso|top|front|left|right|rear|bottom. frame: "plate" zooms out to the whole bed (where the part sits, footprint…

ParameterTypeDescription
anglestring
frame
heightinteger
viewstring
widthinteger

get_printer_status Get printer status

Read what the 3D printer is doing now (state, temperatures, job progress, problems); wait_for_printer waits for a point in a print. It reports state (idle, preparing, heating, printing, paused, finished, cancelled, error, shutdown, offline), nozzle and bed temperatures with their targets, the current job (file, progress, layer, time elapsed and left, and what the time left is based on), and any problems the printer reports, each in the printer's own words with a plain-English hint for common ones. Relay `headline` as-is. Never invent a cause the printer did not report.…

wait_for_printer Wait for the printer

Wait until the printer is heated, printing, past the first layer or finished, checking every 5 seconds. Returns as soon as it happens (met: true), or at the timeout with the latest status (met: false). It also returns early, with stopped_early saying why, when the printer reports a fault, when the job ends before the point it waits for (a cancelled print, say), or after losing contact ("Lost contact with the printer"). A job that completes successfully while the wait is for 'printing' or 'first_layer_done' counts as met (a one-layer print passes both at once). A met re…

ParameterTypeDescription
until *stringWhat to wait for. 'heated': every heater with a target is within 3 °C of it. 'printing': extrusion has started. OctoPrint reports no extrusion, so there it means the job is running with the heaters a…
timeout_sintegerSeconds to wait before returning the latest status. Default 300, at most 1800. Call again to keep waiting.

list_print_history List print history

List how recent prints on the printer ended against the slicer's estimates (Klipper only); recall_prints looks up one model's past prints. For each finished job: result (success, cancelled or error), how long it took against the slicer's estimate, filament used, and for failed or stopped jobs the printer's own reason while its console still holds it. `summary` says how the slicer's time estimates compare with reality once there are a few finished prints. Also copies those jobs into the local outcome store (safe to repeat), so recall_prints can learn from them. Klipper prin…

ParameterTypeDescription
limitinteger

check_printer_match Check the profile against the printer

Check the active OrcaSlicer profile against the printer before printing: on a Bambu Lab printer, that each filament's slot preset matches what its AMS tray holds; on Klipper, the printer's own settings (nozzle, bed, speeds, temperatures). Warnings only. On a Bambu Lab printer (the OrcaSlicer MCP build with bambu_ams, the printer selected in the Device tab) it returns what get_filament_slot_mapping returns: per filament the tray OrcaSlicer's Send dialog will pre-fill and `match` (exact, soft, none, unknown), with `headline` and `warnings` to relay. A soft match names both filam…