upload_gcode
Uploads a G-code file to the QIDI printer without starting a print. Requires confirm=true and supports overwriting existing files when overwrite=true.
Instructions
Upload a G-code file to the printer. Provide the content either as content (plain text) or content_base64 (for binary-safe transfer). Does NOT start a print — call start_print separately, deliberately. Requires confirm=true; set overwrite=true to replace an existing file.
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": {
"filename": "<filename>"
},
"name": "upload_gcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| content | No | ||
| filename | Yes | ||
| overwrite | No | ||
| subdirectory | No | ||
| confirm_token | No | ||
| content_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||