360 Secure SkillHub
360 安全技能中心

bambu-labs

该 Skill 根据文件类型,把已切片文件导入 Bambu Connect,或在 Bambu Studio 中打开未切片模型;用户在应用中确认打印机、材料与热床后再开始打印。它不控制打印机,也不读取打印状态。

分类:自动化
earthtojake
热度 40.75
最近更新 2026-11-02 23:52:03

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add earthtojake/text-to-cad/bambu-labs
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
bambu-labs
description
Send prints to Bambu Lab printers through Bambu Connect, Bambu Lab's official app for printing from other software, or Bambu Studio. Use when the user wants to print a sliced `.gcode.3mf`, a Bambu `.gcode` or an unsliced model on a Bambu Lab printer, over Bambu Cloud or LAN. The agent opens the file in the app; the user picks the printer and starts the print there.
license
MIT
metadata
{"repository":"earthtojake/text-to-cad"}

Bambu Labs

Bambu Lab printers take print jobs from other software only through Bambu Connect, Bambu Lab's desktop app for third-party tools (https://wiki.bambulab.com/en/software/third-party-integration). This skill opens a file in Bambu Connect, or an unsliced model in Bambu Studio; the user picks the printer and starts the print there. The agent never controls a printer and never asks for access codes.

Requirements

Bambu Connect (Windows 10 or later, macOS 13 or later), signed in to the user's Bambu Lab account, with the printer on that account or reachable in LAN mode (https://wiki.bambulab.com/en/software/bambu-connect). On Linux, where Bambu Connect is still in development, use Bambu Studio.

Choose the handoff

What the user has Handoff
A sliced .gcode.3mf, from OrcaSlicer's command line or Bambu Studio's or OrcaSlicer's "Export plate sliced file" Open it in Bambu Connect
A plain .gcode sliced with this printer's Bambu profile Open it in Bambu Connect; if Bambu Connect refuses it, slice the model in Bambu Studio instead
A model with no slice: .3mf, .stl or .step (from a text-to-cad model: cad export <id> part.3mf) Open it in Bambu Studio, which slices it and sends it to the printer itself

Open a file in Bambu Connect

Bambu Connect imports a file from a bambu-connect://import-file link with three parameters: path, the file's absolute path, and name, the name to show, each percent-encoded the way JavaScript's encodeURIComponent does it (Python: urllib.parse.quote(value, safe="")); and version=1.0.0. For /Users/me/prints/bracket.gcode.3mf:

bambu-connect://import-file?path=%2FUsers%2Fme%2Fprints%2Fbracket.gcode.3mf&name=bracket&version=1.0.0

Open the link with open "<link>" on macOS, or Start-Process "<link>" in PowerShell on Windows. Bambu Connect comes forward with the file loaded.

Open a model in Bambu Studio

On macOS run open -a BambuStudio <file> (some installs name the app Bambu Studio). On Windows open the file from Bambu Studio's File menu, or run Start-Process <file> when Bambu Studio is the file's default app. On Linux run bambu-studio <file>, or open it from the AppImage or Flatpak.

Finish in the app

Before the user presses Print, tell them what to check: the printer, plate type, nozzle, filament and AMS mapping, a clear build plate, and someone nearby for the first layer. Never report a print as started: the agent can't see the printer, and the app shows the job and its progress.

Out of scope

Starting, pausing or cancelling prints without the user, and reading printer status: Bambu Lab's firmware takes those from other software only through Bambu Connect, or in Developer Mode, which is LAN-only and disconnects the printer from Bambu Cloud. Slicing is OrcaSlicer's or Bambu Studio's.