send_to_printer
Upload sliced G-code or .3MF files to a FlashForge Creator 5 over the local network, with optional bed leveling and print start after upload.
Instructions
Upload a sliced file to the Creator 5 over the local network (experimental).
By default the file is only uploaded. Set start_print=True only after the user has confirmed the bed is clear and the right filament is loaded in toolhead 1.
Args: gcode_path: Absolute path to the .gcode or .3mf produced by slice_model. start_print: Start printing straight after upload. level_bed: Run bed levelling before the print starts.
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_path": "<gcode_path>"
},
"name": "send_to_printer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level_bed | No | ||
| gcode_path | Yes | ||
| start_print | No |