--- title: "Zoom and stabilisation" description: "Zoom a power-zoom lens on a Sony, Canon or Nikon camera from your computer, to a focal length or like a zoom rocker, and set digital zoom and stabilisation." url: https://darkgrade.com/docs/functionality/zoom last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # Zoom and stabilisation > Zoom a power-zoom lens on a Sony, Canon or Nikon camera from your computer, to a focal length or like a zoom rocker, and set digital zoom and stabilisation. > ## 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. Zoom a Sony, Canon or Nikon camera from your computer. Zooming needs a [power-zoom lens](https://darkgrade.com/docs/overview/glossary.md#power-zoom): see [what the camera can do](https://darkgrade.com/docs/functionality/connection.md#what-the-camera-can-do) for whether zoom is available. Digital zoom and stabilisation are settings, set like any other. 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 | | - | - | | [Zoom to a focal length](#zoom-to-a-focal-length) | Go to 35 mm, for example. | | [Start zooming](#start-zooming) | Zoom in or out until stopped. | | [Stop zooming](#stop-zooming) | Stop the zoom. | | [Digital zoom](#digital-zoom) | Zooming past the lens, in the camera. | | [Image stabilisation](#image-stabilisation) | Steadies the picture against shake. | 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. ## Zoom to a focal length Zooms to a focal length, such as 35 mm, and tells you where the lens stopped. ```text Studio Click the microphone and say “Zoom to 35 millimetres”. ``` ```text MCP Ask Claude: “Zoom to 35 millimetres.” → camera_zoom_to {"focalLengthMillimetres": 35} ``` ```bash CLI npx darkgrade camera zoom-to 35 ``` ```typescript Slate const focalLength = await camera.zoomTo(35) // 35: where the lens stopped, in millimetres ``` ### Inputs - **`focalLengthMillimetres`** · a number · required · CLI `` The focal length to go to, in millimetres, such as 35. ### What you get back A number: the focal length, in millimetres, where the lens stopped, read back from the camera. - Needs a power-zoom lens that reports its focal length. - Asked for a focal length past the lens's range, it stops at the end. If the lens cannot get within a millimetre of what you asked for, you get an error that says where it is. Also called *go to focal length*, *set focal length*, *zoom position*, *set zoom*. Slate reference: [`zoomTo`](https://darkgrade.com/docs/slate/getting_started/camera.md#zoomto) ## Start zooming Zooms in or out like holding the zoom rocker, until you stop it. ```text Studio In the sidebar, under Lens, hold the zoom-in or zoom-out button. Let go to stop. Or click the microphone and say “Zoom in”. A spoken zoom lasts half a second. ``` ```text MCP Ask Claude: “Zoom in slowly.” → camera_start_zoom {"direction": "in", "speed": "slow"} The zoom runs until camera_stop_zoom, or for 10 seconds. ``` ```bash CLI # Holds until Ctrl-C or --duration (1s or more), # then stops the zoom. npx darkgrade camera start-zoom in slow --duration 2s ``` ```typescript Slate await camera.startZoom('in', { speed: 'slow' }) // …later await camera.stopZoom() ``` ### Inputs - **`direction`** · `in` `out` · required `in` zooms towards telephoto, `out` towards wide. - **`speed`** · `slow` `medium` `fast` · required How fast to zoom. * The zoom stops by itself after 10 seconds. Also called *zoom in*, *zoom out*, *hold zoom rocker*, *power zoom*. Slate reference: [`startZoom`](https://darkgrade.com/docs/slate/getting_started/camera.md#startzoom) ## Stop zooming Stops a zoom that [Start zooming](#start-zooming) began. ```text Studio Let go of the zoom button. A spoken zoom stops by itself. ``` ```text MCP Ask Claude: “Stop zooming.” → camera_stop_zoom {} ``` ```bash CLI # Rarely needed here: start-zoom stops the zoom itself # when it ends. npx darkgrade camera stop-zoom ``` ```typescript Slate await camera.stopZoom() ``` - Always allowed, even while something else is running. - It returns once the lens has come to rest, which takes up to 2.5 seconds on Sony. Also called *zoom stop*. Slate reference: [`stopZoom`](https://darkgrade.com/docs/slate/getting_started/camera.md#stopzoom) ## Digital zoom Zooming past the lens inside the camera: Clear Image Zoom, Hi-Res Zoom, digital teleconverters. ```text Studio In the sidebar, choose Lens › Digital zoom. Or click the microphone and say “Turn off digital zoom”, or ask “Is digital zoom on?” ``` ```text MCP Ask Claude: “Turn off digital zoom.” → camera_set_digital_zoom {"value": "Off"} Ask Claude: “Is digital zoom on?” → camera_get_digital_zoom {} ``` ```bash CLI npx darkgrade camera set-digital-zoom Off npx darkgrade camera get-digital-zoom ``` ```typescript Slate await camera.setDigitalZoom('Off') const digitalZoom = await camera.getDigitalZoom() // 'Off' ``` **Values** `Off` `Clear Image Zoom` `Digital Zoom` and more. ### All values (6) `Off` `Clear Image Zoom` `Digital Zoom` `Hi-Res Zoom` `Digital Zoom 2x` `Digital Zoom 4x` Also called *zoom setting*, *zoom mode*, *zoom range*, *Hi-Res Zoom*, *digital teleconverter*, *clear image zoom*, *movie digital zoom*. Slate reference: [Digital zoom](https://darkgrade.com/docs/slate/reference/settings-zoom.md#digital-zoom) ## Image stabilisation Steadies the picture against camera shake, in the lens, in the body, or both, as the camera's menu offers it. ```text Studio Click the microphone and say “Turn on stabilisation”, or ask “Is stabilisation on?” ``` ```text MCP Ask Claude: “Turn on stabilisation.” → camera_set_image_stabilization {"value": "On"} Ask Claude: “Is stabilisation on?” → camera_get_image_stabilization {} ``` ```bash CLI npx darkgrade camera set-image-stabilization On npx darkgrade camera get-image-stabilization ``` ```typescript Slate await camera.setImageStabilization('On') const imageStabilization = await camera.getImageStabilization() // 'On' ``` **Values** `On` `Off` `Active` and more. ### All values (6) `On` `Off` `Active` `Same as photo` `Sports` `Dynamic Active` Also called *image stabilization*, *stabilization*, *IBIS*, *steady shot*, *vibration reduction*, *VR*, *lens IS*. Slate reference: [Image stabilisation](https://darkgrade.com/docs/slate/reference/settings-zoom.md#image-stabilisation)