Send a print to the printer
send_printPreviews a sliced .gcode.3mf, checks printer idle state and filament mapping, then uploads it over LAN and starts printing only after explicit user confirmation.
Instructions
Upload a sliced .gcode.3mf to the printer over LAN mode and start printing it, after the user confirms.
Call it first without confirm: it reads the file (printer model, time, weight, filaments), checks the printer is idle and is the model the file was sliced for, and maps each filament to a loaded slot of the colour unit, refusing a material mismatch. Show the user that preview, ask them to make sure the bed is empty, and only on an explicit yes call again with confirm=True. Then it uploads the file (up to a few minutes for big files), sends the start command and waits for the printer to report that it's heating or printing. Starting a print heats the nozzle and bed and moves the head; never send one on your own initiative. Supports one colour unit (the Kobra X's own 4-slot unit or a single ACE).
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": {
"file": "<file>"
},
"name": "send_print"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | A sliced .gcode.3mf on this computer, e.g. the gcode_3mf path slice_model returned. | |
| host | No | The printer's IP address on your network (shown on the printer under Settings > Network), e.g. '192.168.1.84'. Omit to use the last printer that worked, or ANYCUBIC_PRINTER_HOST. | |
| slots | No | Colour-unit slot (1-4) for each filament in the file, in order, e.g. [4]. Omit to pick by material and nearest colour. | |
| confirm | No | False (default) only previews. Set True only after the user has said yes to this print in this conversation. |