upload_file
Upload a G-code file from your computer to a 3D printer for direct printing. Supports multiple printer protocols including FTPS, REST, and serial transfer.
Instructions
Upload a local G-code file to the printer.
Handles FTPS (Bambu), REST multipart upload (OctoPrint/Moonraker), and
serial file transfer automatically.
Args:
file_path: Absolute path to the G-code file on the local filesystem.
The file must exist, be readable, and have a recognised extension
(.gcode, .gco, or .g).
After a successful upload the file will appear in ``printer_files()`` and
can be started with ``start_print()``.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |