upload_file
Upload a local .gcode or .3mf file (max 300 MB) to the printer's storage without overwriting existing files; requires confirmation and does not start printing.
Instructions
ACTION: upload a local .gcode/.3mf file (absolute path, max 300 MB) to the printer's storage.
Never overwrites: refuses if the name already exists. Does not start the print. Upload was verified on the Kobra X by an external source, not by this server. Proceeds only with confirm=true and the person's confirmation; dry_run=true shows the request (without the token).
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": {
"local_path": "<local_path>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be the boolean true to proceed. | |
| dry_run | No | true: return the exact message without sending it or asking for confirmation. | |
| local_path | Yes | ||
| remote_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||