Get snapshot
protect_get_snapshotCapture a JPEG snapshot from a UniFi Protect camera by ID. Optionally request 1080p-or-higher quality or use the package channel for doorbell cameras.
Instructions
Get a JPEG snapshot from a camera. Returns a base64-encoded image/jpeg (rendered directly by MCP clients). Use highQuality=true to force a 1080p-or-higher capture; set channel=package to capture from the secondary package camera on doorbells with hasPackageCamera=true. Fails with HTTP 503 when the camera is offline or unreachable. A snapshot too large for one MCP message is refused with an error; try without highQuality.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "protect_get_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Camera ID | |
| channel | No | Camera channel to capture. Use "package" for cameras with hasPackageCamera=true (defaults to main) | |
| highQuality | No | If true, force a 1080p-or-higher resolution snapshot |