protect_get_camera_snapshot
Retrieve a JPEG snapshot from a UniFi Protect camera by providing the camera ID. The snapshot is returned as a base64-encoded image.
Instructions
Get a JPEG snapshot from a Protect camera.
Returns the snapshot as a base64-encoded JPEG image.
Args: camera_id: The camera ID.
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": {
"camera_id": "<camera_id>"
},
"name": "protect_get_camera_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| camera_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |