Skip to content

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.

get_snapshot(camera_id="65f...", controller="default")
ParameterTypeRequiredDefaultDescription
camera_idstringyesProtect camera id.
controllerstringno”default”Name of the UniFi controller to target. Defaults to "default".