UniFi Protect: Get Event Thumbnail
unifi_protect_get_event_thumbnailRetrieve the still image captured when a Protect event triggered detection. Save it to disk and return the file path, or return the JPEG inline for a vision model to inspect.
Instructions
Fetch the still image Protect captured for an event — the frame that triggered the detection. Writes it to disk and returns the path by default; set output="image" to return it inline for a vision model to look at, which costs a large amount of context. Pass the event's id from unifi_protect_list_events; results showing hasThumbnail: true have one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | "file" writes it to disk and returns the path; "image" returns it inline. | file |
| eventId | Yes | Event id — the `id` from unifi_protect_list_events. Results with `hasThumbnail: true` have an image; others return 404. A raw `e-…` value from the console's own payload is also accepted. | |
| savePath | No | Absolute path to write the JPEG to. Defaults to a file under UNIFI_PROTECT_SNAPSHOT_DIR. Parent directories are created. |