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