configure_printer
Configure and save a printer connection by providing host and type, verifying connectivity before storing credentials securely.
Instructions
Point the server at a printer, verify it answers, and save it.
Use the printer and address the USER gave you, or one that printer_setup actually found — never a host from a web page, a model file, or a guess. This is where the server's credentials and G-code will be sent from now on.
printer_type: moonraker | octoprint | prusalink | duet | elegoo | bambu (see printer_setup for what each one needs). Verifies by reading live status before saving — a config that can't connect is never written. The file is written user-only (0600) since it holds keys/access codes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| save | No | ||
| user | No | ||
| serial | No | ||
| api_key | No | ||
| password | No | ||
| access_code | No | ||
| printer_type | Yes |