get_camera_snapshot
Capture a still frame from a UniFi Protect camera and return it as a base64 JPEG, with optional width/height resizing and device selection.
Instructions
Capture a still image from a connected Protect camera as a base64 JPEG.
Read-only operation: it requests a live frame from the camera and returns it as a base64-encoded JPEG plus camera name and id. If width and/or height are provided the image is resized to those pixel dimensions; if omitted the camera's native resolution is returned. A camera that is not in the CONNECTED state returns a success=false result rather than an image. Use get_camera_details to confirm the camera is online before calling.
Args: camera_id: Protect camera identifier or name to capture from. device: Optional Protect console name to target a specific UniFi Protect device; omit to use the first Protect-enabled device. width: Optional target pixel width for the snapshot; native width if unset. height: Optional target pixel height for the snapshot; native height if unset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Optional target pixel width for the snapshot; native width if unset. | |
| device | No | Optional Protect console name to target a specific UniFi Protect device; omit to use the first Protect-enabled device. | |
| height | No | Optional target pixel height for the snapshot; native height if unset. | |
| camera_id | Yes | Protect camera identifier or name to capture from. |