unifi_protect_get_event_thumbnail
Retrieve the still image captured for a UniFi Protect event, writing it to disk or returning it inline for vision analysis. Use the event ID from listed events to fetch the frame that triggered the detection.
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. |