upload_gcode
Upload G-code content to a Bambu Lab printer to initiate a print job directly.
Instructions
Upload a G-code file to the Bambu Lab printer
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>",
"gcode": "<gcode>"
},
"name": "upload_gcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name for the file on the printer | |
| gcode | Yes | G-code content to upload | |
| 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) |