upload_gcode
Upload G-code files to a printer without starting the print job. Useful for preparing prints before initiating them.
Instructions
Upload a G-code file to the printer. Does NOT start printing — use start_print for that.
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": "upload_gcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| gcode_path | Yes | ||
| remote_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |