upload_gcode
Upload G-code files directly to your Bambu Lab 3D printer for printing.
Instructions
Upload a G-code file to the Bambu Lab printer
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Hostname or IP of the printer (default: value from env) | |
| gcode | No | G-code content to upload, or a readable local .gcode path. Required unless gcode_path is provided. For large files, prefer gcode_path. | |
| printer | No | Configured printer ID. Omit to use the default printer or the only configured printer. | |
| filename | Yes | Name for the file on the printer | |
| gcode_path | No | Local path to a .gcode file to upload. Required unless gcode is provided. This avoids sending large G-code bodies through the MCP request. | |
| bambu_token | No | Access token (default: value from env) | |
| bambu_serial | No | Serial number (default: value from env) |