Skip to main content
FunctionalityConnect and read capabilities

Remote control starts here: find the Sony, Canon or Nikon camera attached to your computer, open it, and ask what it offers. What a camera can do depends on its model, its mode and its lens, so read What the camera can do before changing anything.

WhatDoes
Find camerasList the cameras plugged in.
ConnectOpen the camera.
Camera infoMake, model, firmware and connection.
What the camera can doEvery setting, its choices, and what works right now.
Set any settingChange a setting by its id.
Recover a stuck cameraBring back a camera that stopped answering.
DisconnectClose the camera and put it back as it was.
EventsHear when a setting changes or a file lands.

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.

Find cameras

Lists the cameras plugged in over USB, without opening any of them.

The camera pill above the picture names the camera Studio found. Studio holds one camera at a time.

What you get back

Slate returns a list of DiscoveredCamera, and camera_discover the same fields.

  • vendorId · number
    The USB vendor id.
  • productId · number
    The USB product id.
  • serialNumber · string · optional
    The USB serial number, when the device reports one.
  • manufacturer · string · optional
    The make, as the device reports it over USB.
  • model · string · optional
    The model, as the device reports it over USB.

npx darkgrade cameras --json prints { "cameras": [...] }. Each entry adds usbId, vendor and state (ready, or other-mode for a camera in card-reader mode), and leaves out manufacturer.

Also called list cameras, scan for cameras, detect cameras, enumerate devices. Slate reference: Camera.discover

Connect

Opens the camera so you can control it. Everything else on these pages needs an open camera.

Plug the camera in over USB. Studio connects on its own.
To connect by hand, click the camera pill above the picture, then Connect.

Inputs

  • observeOnly · true or false · CLI --[no-]observe-only
    Default false. True reads everything but changes no setting on the camera.
  • device · DeviceDescriptor · Slate only
    Which camera to open, when several are attached. See connect.
  • If no camera is found, check the camera first: it must be on, connected with a USB cable that carries data, and set for remote control (Sony: PC Remote). See Set up the camera.
  • On a Mac, if connecting fails with an access or busy error, the system has claimed the camera first. Studio handles this for you; for the CLI see If a ready camera will not open, and for Slate Prepare your computer.
  • Over Wi-Fi or Ethernet, only Slate opens a camera: see Wi-Fi with PTP/IP.

Also called open camera, start session, attach camera. Slate reference: connect

Camera info

Reads the camera's make, model and firmware version, and how it is connected.

The camera pill above the picture names the camera. Click it for its details.
Or click the microphone and ask “Which camera is this?”

What you get back

Slate returns a CameraInfo. MCP and the CLI return the same fields as JSON.

  • manufacturer · string
    The make, such as Sony.
  • model · string
    As the camera names itself, such as ILCE-7M5.
  • firmware · string
    The firmware version, as the camera reports it.
  • serialNumber · string · optional
    The body's serial number, when it reports one.
  • lensMount · string · optional
    The lens mount (E, A, Z, F, RF), for model families whose name gives it.
  • connection · "usb" "wifi" "ip"
    ip is a network connection over Wi-Fi or Ethernet; wifi is a camera maker’s own Wi-Fi link.

Also called device info, identify, model name, firmware version. Slate reference: getInfo

What the camera can do

Reads every setting's current value and the values it accepts, which operations the camera can do right now (with the reason when it can't), and the lens. Read it before you change anything: a camera only accepts the values it lists here.

The sidebar shows the settings your camera reports, each with its current value. Open one to see the values it takes right now.
A greyed-out setting cannot change in the current mode.
Or click the microphone and ask “What are my settings?”

What you get back

Slate returns a CameraCapabilities. MCP and the CLI return the same fields as JSON.

  • observedAt · number
    When this was read, in milliseconds since 1970.
  • controls · object, by setting id
    Each setting the camera reports now, by id: its value, the values it accepts and whether it can be changed.
  • advertisedOperations · number[] null
    The raw operation codes the camera lists, for diagnostics; null when it lists none.
  • lens · CameraLens · optional
    The lens on the camera; left out when the camera reports nothing about it.
  • operations · object, by operation name · optional
    Each operation, whether it can run right now, and the reason when it cannot.

The fields of lens:

  • name · string null
    The lens's name; null when the camera does not report it.
  • focalLengthMillimetres · number null
    The focal length now, in millimetres; null when the camera does not report it.

Each entry of controls has the fields listed under Set any setting. Each entry of operations is { supported, reason?, options? }: reason says why not, in words you can act on, and options covers optional parts such as a live-view overlay.

Also called get settings, list settings, get controls, list controls, list properties, supported operations, controls. Slate reference: getCapabilities

Set any setting

Changes any setting by its id and answers with what the camera reports afterwards. It is for scripts and code that pick the setting as they run. Every setting also has a section of its own, linked under Setting ids below.

Click the microphone and say “Set drive mode to single”.
Any setting works by name, including those that are not in the sidebar.

Inputs

  • id · a setting id · required
    A setting id, such as iso: see Setting ids, below.
  • value · text or a number · required
    One of the setting's allowed values: text, or a number for colour temperature and audio level.
  • framesPerSecond · a number · CLI --frames-per-second
    Only for shutter speed, and only to convert between a shutter angle and a duration.

Setting ids

IdSetting
exposureModeExposure mode
shutterSpeedShutter speed
apertureAperture
isoISO
exposureCompensationExposure compensation
meteringModeMetering
focusModeFocus mode
focusAreaFocus area
subjectDetectionSubject detection
detectionSubjectDetection subject
eyeSelectionEye selection
continuousAutofocusContinuous AF
digitalZoomDigital zoom
imageStabilizationImage stabilisation
driveModeDrive mode
shutterTypeShutter type
flashModeFlash
photoFormatPhoto format
photoSizePhoto size
aspectRatioAspect ratio
jpegQualityJPEG quality
rawCompressionRAW compression
liveViewQualityLive-view quality
photoVideoModePhoto / video
videoFormatVideo format
videoQualityVideo quality
frameRateFrame rate
audioRecordingAudio recording
audioLevelAudio level
whiteBalanceWhite balance
colorTemperatureColour temperature
pictureStyleLook
pictureProfilePicture profile

What you get back

Slate returns a CameraControlState. MCP and the CLI return the same fields as JSON.

  • id · CameraControlId
    The setting's id, such as iso.
  • label · string
    The setting's name for people, such as ISO.
  • aliases · readonly string[]
    Other words for the setting, for search.
  • source · { name, code, protocol }
    The camera property behind the setting, for diagnostics.
  • value · string · optional
    The current value. Left out when the setting does not apply right now, such as colour temperature under a white balance preset.
  • allowedValues · string[] · optional
    The values the camera accepts right now.
  • writable · boolean
    False when the camera reports the setting as read-only.
  • enabled · boolean
    False when the setting does not apply in the current mode.
  • range · { minimum, maximum, step } · optional
    For numeric settings: the minimum, maximum and step.
  • exposureTime · ExposureTime · optional
    For shutter speed: the value as a duration or an angle, in numbers.
  • unrecognized · { value?, choices? } · optional
    Values the camera reported that have no name yet. They are never writable.
  • In Slate, shutter speed also takes an exposure-time object: see setControl.

Also called set setting, set property, set value. Slate reference: setControl

Recover a stuck camera

Brings back a camera that stopped answering, in software: it tries a fresh connection, then a camera reset, then a USB port reset, and stops at the first that works. Nothing is unplugged or power-cycled.

Studio reconnects on its own when the camera stops answering. Meanwhile the camera pill reads Reconnecting…

Inputs

  • stepTimeoutMilliseconds · a number · CLI --step-timeout-milliseconds
    The longest each step may take. Default 8 seconds.
  • waitForDeviceMilliseconds · a number · CLI --wait-for-device-milliseconds
    How long to wait for the camera to show up on USB. Default 20 seconds.
  • allowPortReset · true or false · CLI --[no-]allow-port-reset
    Default true. Turn it off when other software on this computer must keep its connection to the USB port.

What you get back

Slate returns a CameraRecoveryReport. MCP and the CLI return the same fields as JSON.

  • recovered · boolean
    True when the camera answered again after one of the steps.
  • needsPhysicalAction · boolean
    True when software could not bring the camera back: unplug it, or turn it off and on.
  • steps · CameraRecoveryStep[]
    Each recovery step tried, in order, and whether it worked.
  • durationMilliseconds · number
    How long recovery took.
  • identity · { manufacturer, model, firmware } · optional
    The camera that answered, when one did: its make, model and firmware.

Each entry of steps:

  • step · "enumerate" "session" "device-reset" "port-reset"
    enumerate: waiting for the camera on USB. session: a fresh connection. device-reset: a camera reset. port-reset: a USB port reset.
  • ok · boolean
    Whether the camera answered after this step.
  • durationMilliseconds · number
    How long the step took.
  • detail · string · optional
    Why the step failed, when it did.
  • The connection is closed afterwards. Connect again to use the camera.
  • When needsPhysicalAction is true, software could not bring the camera back: unplug it, or turn it off and on.

Also called reset camera, unstick, reconnect, repair connection. Slate reference: recover

Disconnect

Closes the camera and puts it back the way it was.

Click the camera pill above the picture, then Disconnect.
Quitting Studio or unplugging the camera closes it too.

Also called close camera, end session. Slate reference: disconnect

Events

The camera says when a setting changes on it, for example when someone turns a dial, and when a new photo or clip lands on the card. An event says that something changed, not what: read the settings or the file list again to find out.

Studio updates by itself when a setting changes on the camera, and lists new photos and clips as they land.
EventMeans
settingsChangedA setting changed on the camera.
mediaAddedA new photo or clip is on the card.

Slate reference: on · off · Events guide · watch on the CLI

⌘I