unifi_protect_get_camera_snapshot
Capture a still frame from a camera as it looks now, saving it to disk and returning the JPEG path, or returning the image inline for vision models.
Instructions
Capture a still frame from a camera as it looks right now. Writes the JPEG to disk and returns its path, size and content type by default. Set output="image" to get the frame inline instead so a vision model can actually look at it — that costs roughly 300,000 to 700,000 characters of context per call, so choose it deliberately rather than by default. A fresh capture is forced; without that the console can hand back a cached frame that is minutes old.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | Where the frame goes. "file" writes it to disk and returns the path — cheap, and you can read the file later if it turns out to matter. "image" returns it inline for a model to look at, at a large cost in context. | file |
| cameraId | Yes | Camera id — the `id` from unifi_protect_list_cameras, a 24-character hex string. Not the camera's name and not its MAC address. | |
| savePath | No | Absolute path to write the JPEG to. Defaults to a timestamped file under UNIFI_PROTECT_SNAPSHOT_DIR. Parent directories are created. | |
| highQuality | No | Request the camera's full resolution rather than a scaled frame. Larger and slower; with output="image" it multiplies an already expensive call. |