SCHEMAXIS · Declared work. Results you can check.Documentation ↗ · Contact
schemaxis/Agent’s Hands

Documentation / generated/prusaslicer-operations.md
Core 11629ae · View or edit Markdown on GitHub ↗

Prusaslicer operation reference

Generated from the current declarations. Do not edit this file by hand.

Types, limits and defaults below describe resolved values. Runtime expressions must produce these types. Unknown options are rejected; defaults apply only when omitted. Constructor options must be constant after document composition.

Index#

sliceModel

sliceModel#

Slices one closed STL part into layer-by-layer FFF/FDM G-code with PrusaSlicer 2.9.6, using a complete configuration rendered from the declared printer, filament and print values. Publishes model.gcode, a per-layer layers.csv, slice-summary.json with native print-time and filament estimates, and the exact config.ini. An independent replay checks layers, the extrusion envelope, temperature/fan setpoints, feedrates, filament arithmetic and kinematic time bounds, and a fresh native reload must reproduce the G-code. It never sends G-code to a printer.

Common mistakes and assumptions:

  • The G-code targets a generic Marlin 2 machine; it is not validated for any physical printer, firmware or material, and no print quality or safety is certified.
  • Only one closed STL object; no supports, brim, skirt, raft, multi-material, modifiers or mesh repair.
  • Estimates are PrusaSlicer model estimates under the declared machine limits, not measured print times.

Native binding: PrusaSlicer console --export-gcode. Output kind: ["text","table"].

Inputs: none.

Option Meaning Type / constraints Default
model The part to slice: an absolute STL path, the units its coordinates use, and optionally the SHA-256 of the exact bytes you intend to slice. {"type":"object","properties":{"file":{"type":"string","minLength":2,"maxLength":4096,"required":true},"units":{"type":"enum","values":["millimetre","inch"],"required":true},"sha256":{"type":"string","minLength":64,"maxLength":64}}} required
printer A generic Marlin 2 fused-filament machine described only by these values: rectangular bed, maximum print height, nozzle diameter, and the feedrate and acceleration limits used by the native time estimator. It is not a vendor printer profile and nothing is sent to a machine. {"type":"object","properties":{"bedSize_mm":{"type":"array","minItems":2,"maxItems":2,"required":true,"items":{"type":"number","minimum":50,"maximum":1000}},"maxPrintHeight_mm":{"type":"number","required":true,"minimum":10,"maximum":1000},"nozzleDiameter_mm":{"type":"number","required":true,"minimum":0.15,"maximum":1.2},"gcodeFlavour":{"type":"enum","values":["marlin2"],"required":true},"maxFeedrate_mm_s":{"type":"number","required":true,"minimum":20,"maximum":1000},"maxAcceleration_mm_s2":{"type":"number","required":true,"minimum":100,"maximum":30000}}} required
material Filament description and setpoints: polymer label, filament diameter and density, first-layer and later nozzle and bed temperatures and the part-cooling fan. The values are copied into G-code and checked for application, not for suitability. {"type":"object","properties":{"type":{"type":"enum","values":["PLA","PETG","ABS","ASA"],"required":true},"filamentDiameter_mm":{"type":"number","required":true,"minimum":1.0,"maximum":3.5},"density_g_cm3":{"type":"number","required":true,"minimum":0.5,"maximum":3.0},"nozzleTemperature_C":{"type":"number","required":true,"minimum":150,"maximum":320},"firstLayerNozzleTemperature_C":{"type":"number","required":true,"minimum":150,"maximum":320},"bedTemperature_C":{"type":"number","required":true,"minimum":0,"maximum":130},"firstLayerBedTemperature_C":{"type":"number","required":true,"minimum":0,"maximum":130},"fanSpeed_percent":{"type":"number","required":true,"minimum":0,"maximum":100}}} required
print Process settings: layer heights, one extrusion width for all features, shells, sparse infill and speeds. Supports, brim, skirt, raft, ironing, variable layer height and custom G-code are always off. {"type":"object","properties":{"layerHeight_mm":{"type":"number","required":true,"minimum":0.04,"maximum":1.0},"firstLayerHeight_mm":{"type":"number","required":true,"minimum":0.04,"maximum":1.0},"extrusionWidth_mm":{"type":"number","required":true,"minimum":0.15,"maximum":2.4},"perimeters":{"type":"integer","minimum":1,"maximum":10,"required":true},"topSolidLayers":{"type":"integer","minimum":0,"maximum":30,"required":true},"bottomSolidLayers":{"type":"integer","minimum":0,"maximum":30,"required":true},"infillDensity_percent":{"type":"number","required":true,"minimum":0,"maximum":100},"infillPattern":{"type":"enum","values":["rectilinear","grid","gyroid"],"required":true},"perimeterSpeed_mm_s":{"type":"number","required":true,"minimum":5,"maximum":500},"infillSpeed_mm_s":{"type":"number","required":true,"minimum":5,"maximum":500},"firstLayerSpeed_mm_s":{"type":"number","required":true,"minimum":5,"maximum":200},"travelSpeed_mm_s":{"type":"number","required":true,"minimum":10,"maximum":1000}}} required
placement Where the model sits on the bed. The model is always dropped onto the bed (minimum Z = 0) and never rotated or arranged. {"type":"object","properties":{"centre_mm":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number","minimum":0,"maximum":1000}}}} {}
requirements Optional named upper limits on checked native estimates. A slice that exceeds any limit still publishes its verified evidence but fails with PERFORMANCE_NOT_MET, which blocks downstream consumers and reuse. {"type":"array","maxItems":8,"items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"required":true},"quantity":{"type":"enum","values":["printTime_s","filamentMass_g","filamentLength_mm"],"required":true},"maximum":{"type":"number","required":true,"minimum":0,"maximum":1000000000.0}}}} []