publish_print_twin
Uploads the active print's sliced file to your Kiln account so the web Monitor can display the object and scrub layers, enabling live 3D print visualization in the browser.
Instructions
Upload the current print's sliced file so the web Monitor can show the object and scrub its layers.
The web Monitor at kiln3d.com calls this through the Kiln bridge
while a print is running; there is normally no reason to call it
by hand. It reads the engine's own retained copy of the file it
last sent to the printer (kept per printer under
``~/.kiln/monitor_twin``), uploads it — gzipped — to YOUR Kiln
account, and returns a short-lived artifact token the browser
uses to fetch the mesh and toolpath. Nothing is uploaded except
by this explicit call, and nothing crosses tenants: the token is
IDOR-checked against your own account on every fetch.
Honest refusals: prints Kiln did not slice on this machine (a
pre-sliced upload, a job started at the printer's screen) have
no retained file, and the response says so rather than guessing.
Args:
printer_name: Which printer's active print to publish. Omit
for the machine's single/default printer.
Returns:
``{"success": True, "artifact_token", "stl_url"|null,
"gcode_url"|null, "file_name", "expires_in"}`` on success;
``{"success": False, "code", "message"}`` otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| printer_name | No |