Take a photo on a Sony, Canon or Nikon camera from your computer and get its file name back once the camera has saved it. This is tethered shooting: the computer fires the shutter and can receive the file. The settings below decide what the file is.
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 |
|---|---|
| Take a photo | Take one photo and get its file name. |
| Drive mode | Single, burst, self-timer or bracket. |
| Shutter type | Mechanical, electronic or first curtain. |
| Flash | Whether and how the flash fires. |
| Photo format | RAW, JPEG, HEIF, or RAW with a JPEG. |
| Photo size | The pixel size of JPEG and HEIF photos. |
| Aspect ratio | The shape of the photo. |
| JPEG quality | How much a JPEG is compressed. |
| RAW compression | How RAW files are compressed. |
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.
Take a photo
Takes one photo and returns once the camera has saved it, with its file name and size.
Click Take photo under the picture, or press Return. The photo is copied to your Mac too.
Or click the microphone and say “Take a photo”.
A photo taken by voice stays on the card.Ask Claude: “Take a photo.”
→ camera_take_photo {}npx darkgrade camera take-photoconst photo = await camera.takePhoto()
// { destination: 'card', mediaId, name, sizeBytes }Get the photo on your computer. Ask for the photo to come to the computer too. It is still saved on the card, unless you choose computerOnly.
The Take photo button does this every time: the photo is also copied to Darkgrade Studio in your Pictures folder.→ camera_take_photo {"destination": "computer"}
Studio's server does not save the file; your own server saves it where its saveFile says.# Saved in this folder under the camera's own file name.
# --output picks another name.
npx darkgrade camera take-photo --destination computerimport { writeFile } from 'node:fs/promises'
const photo = await camera.takePhoto({ destination: 'computer' })
await writeFile(photo.name, photo.data) // photo.data: the bytesInputs
Inputs
autofocus· true or false · CLI--[no-]autofocus
Default true: focus before the shutter. False takes the photo without waiting for focus.destination·cardcomputercomputerOnly· CLI--destination
Defaultcard.computersaves the photo to the card and also returns its bytes.computerOnlysends it to the computer without saving it to the card.download· true or false · CLI--[no-]download
Default true. False keeps every byte of the photo on the camera. Only with destinationcard.rawCompression·CompressedLosslessHigh efficiency★High efficiency· CLI--raw-compression
RAW compression for this photo only, put back afterwards, such asLossless.includeInfo· true or false · CLI--[no-]include-info
Also return the camera's own description of the photo (its PTP ObjectInfo), asinfo.
What you get back
What you get back
Slate returns a Photo. MCP and the CLI return the same fields as JSON.
destination·"card""computer""computerOnly"
Where the photo went.mediaId·string· optional
The photo's id on the card, the same one the file list gives it. Left out forcomputerOnly, and on a camera that cannot list its card.name·string
The file name the camera gave the photo, such asDSC01234.JPG.sizeBytes·number
The size of the file, in bytes.info·ObjectInfo· optional
WithincludeInfo: the camera's own description of the photo, a PTP ObjectInfo.data·Uint8Array· optional
The photo's bytes, forcomputerandcomputerOnly.
A photo sent to the computer is never inside the JSON: data becomes { file, bytes }. The CLI saves the photo in the current folder under the camera's own file name, unless --output names a file. Over MCP the photo is not attached.
- The shutter command is sent once. If the camera never confirms the photo, you get an error, never a second photo.
- Refused while the camera is recording.
- A camera in video mode is switched to photo mode for the shot, and switched back afterwards.
- Over MCP, Claude gets the file name and size, never the picture. To show Claude a photo, ask for its preview.
Also called capture, capture photo, shoot, snap, release shutter, shutter, press shutter, S2, remote release. Slate reference: takePhoto
Drive mode
What one press of the shutter does: one photo, a burst, a self-timer, or an exposure bracket.
Click the microphone and say “Drive mode to continuous high”, or ask “What's the drive mode?”Ask Claude: “Drive mode to continuous high.”
→ camera_set_drive_mode {"value": "Continuous high"}
Ask Claude: “What's the drive mode?”
→ camera_get_drive_mode {}npx darkgrade camera set-drive-mode 'Continuous high'
npx darkgrade camera get-drive-modeawait camera.setDriveMode('Continuous high')
const driveMode = await camera.getDriveMode() // 'Continuous high'Values Single Continuous high Continuous low Self-timer 10 s Self-timer 2 s and more. Brackets are named by step and frame count, such as Continuous bracket 1.0 EV 3 frames. The settings reference lists all 191.
Also called release mode, burst, continuous shooting, still capture mode. Slate reference: Drive mode
Shutter type
Which shutter takes the photo: mechanical, electronic (silent), or electronic first curtain.
Click the microphone and say “Use the electronic shutter”, or ask “Which shutter is it using?”Ask Claude: “Use the electronic shutter.”
→ camera_set_shutter_type {"value": "Electronic"}
Ask Claude: “Which shutter is it using?”
→ camera_get_shutter_type {}npx darkgrade camera set-shutter-type Electronic
npx darkgrade camera get-shutter-typeawait camera.setShutterType('Electronic')
const shutterType = await camera.getShutterType() // 'Electronic'Values Auto Mechanical Electronic Electronic front curtain.
Also called electronic shutter, silent shutter, electronic front curtain, front curtain, EFCS. Slate reference: Shutter type
Flash
Whether and how the flash fires.
Click the microphone and say “Turn the flash off”, or ask “What's the flash set to?”Ask Claude: “Turn the flash off.”
→ camera_set_flash_mode {"value": "Off"}
Ask Claude: “What's the flash set to?”
→ camera_get_flash_mode {}npx darkgrade camera set-flash-mode Off
npx darkgrade camera get-flash-modeawait camera.setFlashMode('Off')
const flashMode = await camera.getFlashMode() // 'Off'Values Off Auto Fill Rear sync and more.
All values (8)
All values (8)
Off Auto Fill Rear sync Red-eye auto Red-eye fill External sync Slow sync
Also called flash mode. Slate reference: Flash
Photo format
What a photo is saved as: RAW, JPEG, HEIF, or RAW with a JPEG or HEIF beside it.
In the sidebar, choose Recording › Photo › Format.
Or click the microphone and say “Shoot RAW plus JPEG”, or ask “What format are photos saved in?”Ask Claude: “Shoot RAW plus JPEG.”
→ camera_set_photo_format {"value": "RAW+JPEG"}
Ask Claude: “What format are photos saved in?”
→ camera_get_photo_format {}npx darkgrade camera set-photo-format RAW+JPEG
npx darkgrade camera get-photo-formatawait camera.setPhotoFormat('RAW+JPEG')
const photoFormat = await camera.getPhotoFormat() // 'RAW+JPEG'Values RAW JPEG HEIF RAW+JPEG RAW+HEIF JPEG Fine and more. Canon sizes combine, as in RAW+L or cRAW+M1. The settings reference lists all 440.
Also called still format, image format, file format, file type, image quality. Slate reference: Photo format
Photo size
The pixel size of JPEG and HEIF photos.
In the sidebar, choose Recording › Photo › Size.
Or click the microphone and say “Large photos”, or ask “What size are the photos?”Ask Claude: “Large photos.”
→ camera_set_photo_size {"value": "Large"}
Ask Claude: “What size are the photos?”
→ camera_get_photo_size {}npx darkgrade camera set-photo-size Large
npx darkgrade camera get-photo-sizeawait camera.setPhotoSize('Large')
const photoSize = await camera.getPhotoSize() // 'Large'Values Large Medium Small and more. Some cameras name a size by its width and height in pixels instead.
All values (3, plus patterns)
All values (3, plus patterns)
Written as <number>x<number>, or one of:
Large Medium Small
Also called image size, jpeg size. Slate reference: Photo size
Aspect ratio
The shape of the photo, or a crop of the sensor.
In the sidebar, choose Recording › Photo › Aspect.
Or click the microphone and say “Aspect ratio sixteen by nine”, or ask “What's the aspect ratio?”Ask Claude: “Aspect ratio sixteen by nine.”
→ camera_set_aspect_ratio {"value": "16:9"}
Ask Claude: “What's the aspect ratio?”
→ camera_get_aspect_ratio {}npx darkgrade camera set-aspect-ratio 16:9
npx darkgrade camera get-aspect-ratioawait camera.setAspectRatio('16:9')
const aspectRatio = await camera.getAspectRatio() // '16:9'Values 3:2 16:9 4:3 1:1 and more.
All values (5)
All values (5)
3:2 16:9 4:3 1:1 3:2 (APS-C crop)
Also called image area, cropping. Slate reference: Aspect ratio
JPEG quality
How much a JPEG is compressed: finer keeps more detail in a bigger file.
In the sidebar, choose Recording › Photo › JPEG quality.
Or click the microphone and say “Fine JPEG quality”, or ask “What's the JPEG quality?”Ask Claude: “Fine JPEG quality.”
→ camera_set_jpeg_quality {"value": "Fine"}
Ask Claude: “What's the JPEG quality?”
→ camera_get_jpeg_quality {}npx darkgrade camera set-jpeg-quality Fine
npx darkgrade camera get-jpeg-qualityawait camera.setJpegQuality('Fine')
const jpegQuality = await camera.getJpegQuality() // 'Fine'Values Extra Fine Fine Standard Normal and more.
All values (9)
All values (9)
Extra Fine Fine Standard Normal Light Basic Basic★ Normal★ Fine★
Also called jpeg compression. Slate reference: JPEG quality
RAW compression
How RAW files are compressed: lossless, compressed, or high efficiency.
Click the microphone and say “Lossless RAW”, or ask “How are RAW files compressed?”Ask Claude: “Lossless RAW.”
→ camera_set_raw_compression {"value": "Lossless"}
Ask Claude: “How are RAW files compressed?”
→ camera_get_raw_compression {}npx darkgrade camera set-raw-compression Lossless
npx darkgrade camera get-raw-compressionawait camera.setRawCompression('Lossless')
const rawCompression = await camera.getRawCompression() // 'Lossless'Values Lossless Compressed High efficiency and more.
All values (4)
All values (4)
Lossless Compressed High efficiency High efficiency★
Also called NEF compression, raw file type, ARW compression. Slate reference: RAW compression