get_snapshot
get_snapshot
Section titled “get_snapshot”Fetch a current JPEG snapshot from a camera, base64-encoded.
Side effects: None (read-only).
Returns {"camera_id": ..., "format": "jpeg", "data": "<base64>", "size_bytes": ...}. The JPEG payload is base64-encoded so it can
ride inside the JSON envelope all MCP tools return; decode with
base64.b64decode to get the raw image bytes.
Example
Section titled “Example”get_snapshot(camera_id="65f...", controller="default")Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
camera_id | string | yes | — | Protect camera id. |
controller | string | no | ”default” | Name of the UniFi controller to target. Defaults to "default". |