printer_send_gcode
Send G-code commands to control Bambu Lab 3D printers for hardware adjustments and printer management, with safety measures to block dangerous commands.
Instructions
Send a single G-code command to the printer (e.g., "G28" for home). Dangerous commands are blocked for safety.
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": {
"gcode": "<gcode>"
},
"name": "printer_send_gcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gcode | Yes | G-code command |