publish_print_twin
Upload the current print's sliced file to the Kiln web Monitor so it can display the object and let you scrub through its layers while printing.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "publish_print_twin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| printer_name | No | Which printer's active print to publish. Omit for the machine's single/default printer. |