printer_snapshot
Capture a webcam snapshot from a 3D printer, auto-detecting the camera protocol, and save it to a file or return it base64-encoded.
Instructions
Capture a webcam snapshot from the printer.
Handles TLS+JPEG camera protocol (Bambu A1/P1), MJPEG stream capture
(OctoPrint/Moonraker), and RTSPS (Bambu X1) automatically. 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.
: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. |