Loading...
Loading...
Generate, inspect, dry-run, and statically validate plain FDM `.gcode` from 3D mesh files by orchestrating real slicer CLIs. Use when Codex needs to slice `.stl`, `.obj`, unsliced `.3mf`, `.ply`, `.glb`, or `.gltf` into printer-profiled G-code, discover local slicer backends, inspect whether a mesh is slice-ready, or validate generated G-code before any printer-specific handoff.
npx skill4agent add earthtojake/text-to-cad gcode.gcode.stl.obj.3mf.ply.glb.gltfpython scripts/gcode_tool.py discoverpython scripts/gcode_tool.py inspect --input path/to/model.stl --jsonpython scripts/gcode_tool.py slice \
--input path/to/model.stl \
--output /tmp/model.gcode \
--profile path/to/profile.json \
--backend auto \
--dry-runpython scripts/gcode_tool.py slice \
--input path/to/model.stl \
--output /tmp/model.gcode \
--profile path/to/profile.json \
--backend auto \
--executepython scripts/gcode_tool.py validate \
--gcode /tmp/model.gcode \
--profile path/to/profile.json \
--json.gcode$cad-viewer$cad-viewer$cad-viewer{
"backend": "orcaslicer",
"native_config": "/absolute/path/to/native-slicer-profile",
"machine": {
"name": "Example Printer",
"bed_size_mm": [180, 180],
"z_height_mm": 180,
"motion_bounds_mm": {
"x": [0, 180],
"y": [0, 180],
"z": [0, 180]
}
},
"filament": {
"type": "PLA",
"nozzle_temp_c": 220,
"bed_temp_c": 65
}
}machine.motion_bounds_mm0..bed_size0..z_heightnative_settingsnative_filamentsnative_config{
"backend": "orcaslicer",
"native_config": "/absolute/path/to/machine-or-process.json",
"native_settings": [
"/absolute/path/to/machine.json",
"/absolute/path/to/process.json"
],
"native_filaments": [
"/absolute/path/to/filament.json"
],
"machine": {
"name": "Example Printer",
"bed_size_mm": [180, 180],
"z_height_mm": 180
},
"filament": {
"type": "PLA",
"nozzle_temp_c": 220,
"bed_temp_c": 65
}
}orcaslicerprusa-slicercuraenginebrew install --cask orcaslicerdiscoverPATH/Applications/OrcaSlicer.app.stl.obj.3mf.ply.glb.gltftrimeshtrimesh.stl.obj.3mf.step.stp.dxf.svg.urdf.sdfreferences/slicer-backends.mdreferences/gcode-validation.md.gcode.gcode.3mf.gcode$bambu-labs$bambu-labs