Zoom a Sony, Canon or Nikon camera from your computer. Zooming needs a power-zoom lens: see 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 lists them. Every change answers with the value the camera reports afterwards, so you know it took.
| What | Does |
|---|---|
| Zoom to a focal length | Go to 35 mm, for example. |
| Start zooming | Zoom in or out until stopped. |
| Stop zooming | Stop the zoom. |
| Digital zoom | Zooming past the lens, in the camera. |
| 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 is under the picture. MCP tabs show the tool Claude calls on Studio; on your own server 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.
Click the microphone and say “Zoom to 35 millimetres”.Ask Claude: “Zoom to 35 millimetres.”
→ camera_zoom_to {"focalLengthMillimetres": 35}npx darkgrade camera zoom-to 35const focalLength = await camera.zoomTo(35)
// 35: where the lens stopped, in millimetresInputs
Inputs
focalLengthMillimetres· a number · required · CLI<focal-length-millimetres>
The focal length to go to, in millimetres, such as 35.
What you get back
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
Start zooming
Zooms in or out like holding the zoom rocker, until you stop it.
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.Ask Claude: “Zoom in slowly.”
→ camera_start_zoom {"direction": "in", "speed": "slow"}
The zoom runs until camera_stop_zoom, or for 10 seconds.# Holds until Ctrl-C or --duration (1s or more),
# then stops the zoom.
npx darkgrade camera start-zoom in slow --duration 2sawait camera.startZoom('in', { speed: 'slow' })
// …later
await camera.stopZoom()Inputs
Inputs
direction·inout· requiredinzooms towards telephoto,outtowards wide.speed·slowmediumfast· 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
Stop zooming
Stops a zoom that Start zooming began.
Let go of the zoom button. A spoken zoom stops by itself.Ask Claude: “Stop zooming.”
→ camera_stop_zoom {}# Rarely needed here: start-zoom stops the zoom itself
# when it ends.
npx darkgrade camera stop-zoomawait 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
Digital zoom
Zooming past the lens inside the camera: Clear Image Zoom, Hi-Res Zoom, digital teleconverters.
In the sidebar, choose Lens › Digital zoom.
Or click the microphone and say “Turn off digital zoom”, or ask “Is digital zoom on?”Ask Claude: “Turn off digital zoom.”
→ camera_set_digital_zoom {"value": "Off"}
Ask Claude: “Is digital zoom on?”
→ camera_get_digital_zoom {}npx darkgrade camera set-digital-zoom Off
npx darkgrade camera get-digital-zoomawait camera.setDigitalZoom('Off')
const digitalZoom = await camera.getDigitalZoom() // 'Off'Values Off Clear Image Zoom Digital Zoom and more.
All values (6)
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
Image stabilisation
Steadies the picture against camera shake, in the lens, in the body, or both, as the camera's menu offers it.
Click the microphone and say “Turn on stabilisation”, or ask “Is stabilisation on?”Ask Claude: “Turn on stabilisation.”
→ camera_set_image_stabilization {"value": "On"}
Ask Claude: “Is stabilisation on?”
→ camera_get_image_stabilization {}npx darkgrade camera set-image-stabilization On
npx darkgrade camera get-image-stabilizationawait camera.setImageStabilization('On')
const imageStabilization = await camera.getImageStabilization() // 'On'Values On Off Active and more.
All values (6)
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