--- title: "Live view" description: "Read the live view of a Sony, Canon or Nikon camera on your computer as JPEG frames, with its focus frames and on-screen display, and set live-view quality." url: https://darkgrade.com/docs/functionality/live-view last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # Live view > Read the live view of a Sony, Canon or Nikon camera on your computer as JPEG frames, with its focus frames and on-screen display, and set live-view quality. > ## Documentation Index > Fetch the complete documentation index at: https://darkgrade.com/docs/llms.txt > Use this file to discover all available pages before exploring further. Live view is what a Sony, Canon or Nikon camera sees right now, sent to your computer one JPEG at a time: for a monitor, a focus aid, or an AI model that looks at the shot. Your camera takes only the values it offers right now and refuses the rest: [what the camera can do](https://darkgrade.com/docs/functionality/connection.md#what-the-camera-can-do) lists them. Every change answers with the value the camera reports afterwards, so you know it took. | What | Does | | - | - | | [Read a live-view frame](#read-a-live-view-frame) | The current picture, as a JPEG. | | [Live-view quality](#live-view-quality) | Sharper or faster live-view pictures. | Each example has a tab per product. Pick yours once and every example follows. In Studio, the microphone that starts [voice](https://darkgrade.com/docs/studio/voice.md) is under the picture. MCP tabs show the tool Claude calls on Studio; on [your own server](https://darkgrade.com/docs/ai/server.md#what-differs-from-studio) the tools also take `camera`. Each CLI command opens the camera, does one thing and closes it. ## Read a live-view frame Reads the picture the camera sees right now as a JPEG, with the focus boxes the camera draws on it. ```text Studio The picture in the Studio window is the live view. To have Studio measure it, click the microphone and ask “Am I clipping anywhere?” ``` ```text MCP Ask Claude: “What does the camera see?” → camera_get_live_view_frame {} ``` ```bash CLI npx darkgrade camera get-live-view-frame --output frame.jpg # With the camera's on-screen display: also writes # frame-overlay.png. npx darkgrade camera get-live-view-frame --overlay \ --output frame.jpg ``` ```typescript Slate const frame = await camera.getLiveViewFrame() // frame.jpeg: the picture // frame.focusFrames: the focus boxes ``` ### Inputs - **`overlay`** · true or false · CLI `--[no-]overlay` Also read the camera's own on-screen display, as a picture to lay over the frame. ### What you get back Slate returns a [`LiveViewFrame`](https://darkgrade.com/docs/slate/reference/types-results.md#liveviewframe). [MCP](https://darkgrade.com/docs/ai/results.md#what-a-tool-returns) and the [CLI](https://darkgrade.com/docs/cli/output.md#json-results) return the same fields as JSON. - **`jpeg`** · `Uint8Array` The current picture as a JPEG. - **`focusFrames`** · `FocusFrame[]` The camera's focus, face and tracking boxes; empty when it draws none. - **`overlay`** · `LiveViewOverlay` · optional Present when the overlay was requested. Each entry of `focusFrames`: - **`kind`** · `"focus"` `"face"` `"tracking"` What the box marks: the camera's focus area, a detected face, or a tracked subject. - **`focused`** · `boolean` True once the camera reports this frame in focus. - **`centerX`** · `number` The centre of the box, from 0 (left) to 1 (right). - **`centerY`** · `number` The centre of the box, from 0 (top) to 1 (bottom). - **`width`** · `number` The width of the box, as a fraction of the picture. - **`height`** · `number` The height of the box, as a fraction of the picture. The fields of `overlay`: - **`png`** · `Uint8Array` A PNG with transparency, the size of the camera's display. The pictures are never inside the JSON: `jpeg` and `png` become `{ file, bytes }`. MCP attaches the frame for Claude to look at, and your own server the overlay too. The CLI saves the frame as `get-live-view-frame-frame.jpg` and the overlay as `get-live-view-frame-overlay.png`; with `--output frame.jpg`, the overlay goes to `frame-overlay.png`. - It waits for the camera's next frame, so calling it in a loop never asks faster than the camera makes frames. - The overlay is the camera's own on-screen display as a transparent PNG the size of its screen. Today Sony cameras offer it; Canon and Nikon do not. See [what the camera can do](https://darkgrade.com/docs/functionality/connection.md#what-the-camera-can-do) for whether yours does. Also called *live view*, *live preview*, *get frame*, *preview frame*, *monitor feed*, *on-screen display*, *OSD*. Slate reference: [`getLiveViewFrame`](https://darkgrade.com/docs/slate/getting_started/camera.md#getliveviewframe) ## Live-view quality The size and quality of live-view pictures: sharper, or faster. ```text Studio Under the picture, click HQ or LQ to switch between high and low. Or click the microphone and say “High quality live view”, or ask “What's the live-view quality?” ``` ```text MCP Ask Claude: “High quality live view.” → camera_set_live_view_quality {"value": "High"} Ask Claude: “What's the live-view quality?” → camera_get_live_view_quality {} ``` ```bash CLI npx darkgrade camera set-live-view-quality High npx darkgrade camera get-live-view-quality ``` ```typescript Slate await camera.setLiveViewQuality('High') const liveViewQuality = await camera.getLiveViewQuality() // 'High' ``` **Values** `Low` `Medium` `High`. Also called *live view quality*, *preview quality*, *live view image quality*, *live view image size*, *live view size*, *live view resolution*. Slate reference: [Live-view quality](https://darkgrade.com/docs/slate/reference/settings-live-view.md#live-view-quality)