upload_gcode
Upload a sliced G-code file to a configured 3D printer and return its stored filename plus slicer metadata such as material, temperatures, height, and print time. It does not start printing.
Instructions
Upload a sliced G-code file to a printer. Returns the filename it was stored under and what the slicer recorded: material, temperatures, height and time. This never starts a print: use start_print with that filename.
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": {
"path": "<path>"
},
"name": "upload_gcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a .gcode file on the machine running Topsail. | |
| printer | No | Printer name from list_printers. Optional when only one is configured. |