printer_snapshot
Capture a JPEG or PNG snapshot from a 3D printer's built-in or registered camera to inspect print status; return the image as base64 or save it to a file.
Instructions
Capture a webcam snapshot from the printer.
Reads the printer's own camera, whichever kind it has. An answer that
is not a JPEG or PNG picture is refused, never returned. A camera the
user registered for the printer (``register_printer`` with
``camera_snapshot_url`` / ``camera_stream_url``) is used instead of the
printer's own; ``camera_source`` in the reply says which one answered.
Some cameras need Kiln's free camera add-on. When it is missing, the
refusal carries a ``camera_addon`` block beside ``error``: say its
``message``, ask its ``ask``, and only after the person says yes make
the call its ``install`` names; then take the snapshot again.
A camera that gave no picture is said in ``error.message`` in words for
the person. ``detail`` beside ``error``, when present, carries the
specifics (the address asked, what answered) for you, not for them.
:param printer_name: Target printer name. Omit for the default printer.
:param save_path: Optional path to save the image file. If omitted, the
image is returned as a base64-encoded string.
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": "printer_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_path | No | Optional path to save the image file. If omitted, the image is returned as a base64-encoded string. | |
| printer_name | No | Target printer name. Omit for the default printer. |