upload_gcode
Inspect and upload G-code to a Bambu printer, creating a uniquely named copy to prevent overwriting existing files.
Instructions
Inspect a G-code file and upload a uniquely named copy without overwriting existing printer files.
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. | |
| 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_model | No | Required printer model for inspecting the uploaded G-code, even when not starting it. | |
| bambu_token | No | Access token (default: value from env) | |
| bambu_serial | No | Serial number (default: value from env) |