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.
| What | Does |
|---|---|
| Find cameras | List the cameras plugged in. |
| Connect | Open the camera. |
| Camera info | Make, model, firmware and connection. |
| What the camera can do | Every setting, its choices, and what works right now. |
| Set any setting | Change a setting by its id. |
| Recover a stuck camera | Bring back a camera that stopped answering. |
| Disconnect | Close the camera and put it back as it was. |
| Events | Hear 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.Studio holds the camera itself, so its server has no tool for this. On your own server:
→ camera_discover {}npx darkgrade camerasimport { Camera } from '@darkgrade/slate'
const cameras = await Camera.discover()
// [{ vendorId, productId, model, … }]What you get back
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.Studio holds the camera itself, so its server has no tool for this. On your own server:
→ camera_connect {"camera": "main"}# Every command opens the camera and closes it when done,
# so you never need to run this yourself.
npx darkgrade camera connectimport { Camera } from '@darkgrade/slate'
const camera = new Camera()
await camera.connect()Inputs
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. Seeconnect.
- 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?”Ask Claude: “Which camera is this?”
→ camera_get_info {}npx darkgrade camera get-infoconst info = await camera.getInfo()
// { manufacturer, model, firmware, connection, … }What you get back
What you get back
Slate returns a CameraInfo. MCP and the CLI return the same fields as JSON.
manufacturer·string
The make, such asSony.model·string
As the camera names itself, such asILCE-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"ipis a network connection over Wi-Fi or Ethernet;wifiis 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?”Ask Claude: “What can my camera do right now?”
→ camera_get_capabilities {}npx darkgrade camera get-capabilities --jsonconst capabilities = await camera.getCapabilities()
console.log(capabilities.controls.iso?.allowedValues)
console.log(capabilities.operations?.takePhoto?.supported)What you get back
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·stringnull
The lens's name; null when the camera does not report it.focalLengthMillimetres·numbernull
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.Ask Claude: “Set ISO to 800.”
→ camera_set_control {"id": "iso", "value": "ISO 800"}npx darkgrade camera set-control iso 'ISO 800'const state = await camera.setControl('iso', 'ISO 800')
console.log(state.value) // 'ISO 800'Inputs
Inputs
id· a setting id · required
A setting id, such asiso: 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
Setting ids
| Id | Setting |
|---|---|
exposureMode | Exposure mode |
shutterSpeed | Shutter speed |
aperture | Aperture |
iso | ISO |
exposureCompensation | Exposure compensation |
meteringMode | Metering |
focusMode | Focus mode |
focusArea | Focus area |
subjectDetection | Subject detection |
detectionSubject | Detection subject |
eyeSelection | Eye selection |
continuousAutofocus | Continuous AF |
digitalZoom | Digital zoom |
imageStabilization | Image stabilisation |
driveMode | Drive mode |
shutterType | Shutter type |
flashMode | Flash |
photoFormat | Photo format |
photoSize | Photo size |
aspectRatio | Aspect ratio |
jpegQuality | JPEG quality |
rawCompression | RAW compression |
liveViewQuality | Live-view quality |
photoVideoMode | Photo / video |
videoFormat | Video format |
videoQuality | Video quality |
frameRate | Frame rate |
audioRecording | Audio recording |
audioLevel | Audio level |
whiteBalance | White balance |
colorTemperature | Colour temperature |
pictureStyle | Look |
pictureProfile | Picture profile |
What you get back
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 asiso.label·string
The setting's name for people, such asISO.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…Studio holds the camera itself, so its server has no tool for this. On your own server:
→ camera_recover {"camera": "main"}npx darkgrade camera recoverconst report = await camera.recover()
// recover closes the connection, so open it again
if (report.recovered) await camera.connect()Inputs
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
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
needsPhysicalActionis 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.Studio holds the camera itself, so its server has no tool for this. On your own server:
→ camera_disconnect {"camera": "main"}# Every command closes the camera when it is done,
# so you never need to run this yourself.
npx darkgrade camera disconnectawait camera.disconnect()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.There is no tool for events. Read the camera again:
→ camera_get_capabilities {}
→ camera_list_media {}# Prints a line per event until Ctrl-C or --duration.
npx darkgrade camera watch --jsonconst onMedia = () => console.log('a new photo or clip')
camera.on('mediaAdded', onMedia)
camera.on('settingsChanged', () => console.log('a setting changed'))
camera.off('mediaAdded', onMedia)| Event | Means |
|---|---|
settingsChanged | A setting changed on the camera. |
mediaAdded | A new photo or clip is on the card. |
Slate reference: on · off · Events guide · watch on the CLI