Skip to main content
ReferenceTool reference

Every tool is a camera operation in snake_case, with the same argument names as Slate. Served by Studio, tools act on the camera Studio has open. Served by npx darkgrade mcp, tools take no camera argument and the server connects for you. On your own server, every tool except camera_discover also takes camera: string, the name your server knows the camera by.

Each tool links to its section in Functionality, with an example and what it returns. An argument with ? is optional. A setting's value must be spelled as its section lists it, and be one your camera offers right now: camera_get_capabilities says which. Results and safety covers what a tool returns, which tools change the camera and what happens when one fails.

Studio also serves tools of its own, such as adjust_exposure and analyze_frame: see Studio's own tools.

Connection

ToolDoes
camera_discoverFind cameras. List the cameras plugged in. Served by darkgrade mcp and your own server.
camera_connectConnect. Open the camera. Your own server only.
Takes observeOnly?: boolean
camera_get_infoCamera info. Make, model, firmware and connection.
camera_get_capabilitiesWhat the camera can do. Every setting, its choices, and what works right now.
camera_set_controlSet any setting. Change a setting by its id.
Takes id: string, value: string, framesPerSecond?: number
camera_recoverRecover a stuck camera. Bring back a camera that stopped answering. Served by darkgrade mcp and your own server.
Takes stepTimeoutMilliseconds?: number, waitForDeviceMilliseconds?: number, allowPortReset?: boolean
camera_disconnectDisconnect. Close the camera and put it back as it was. Your own server only.

Studio holds the camera itself, so its server leaves out camera_discover, camera_connect, camera_recover and camera_disconnect. darkgrade mcp leaves out camera_connect and camera_disconnect: it opens the camera the first time a tool needs it.

Exposure

ToolDoes
camera_get_exposure_mode
camera_set_exposure_mode
Read or set Exposure mode.
Set takes value: string
camera_get_shutter_speed
camera_set_shutter_speed
Read or set Shutter speed.
Set takes value: string
camera_get_aperture
camera_set_aperture
Read or set Aperture.
Set takes value: string
camera_get_iso
camera_set_iso
Read or set ISO.
Set takes value: string
camera_get_exposure_compensation
camera_set_exposure_compensation
Read or set Exposure compensation.
Set takes value: string
camera_get_metering_mode
camera_set_metering_mode
Read or set Metering.
Set takes value: string

Focus

ToolDoes
camera_autofocusAutofocus. Focus once and say whether it locked.
camera_set_focus_pointFocus on a point. Focus on a spot in the frame.
Takes x: number, y: number, autofocus?: boolean
camera_reset_focus_pointReset the focus point. Put the focus point back in the centre.
camera_nudge_focusNudge manual focus. Step focus nearer or farther.
Takes direction: "near" | "far", size: "small" | "medium" | "large"
camera_get_focus_mode
camera_set_focus_mode
Read or set Focus mode.
Set takes value: string
camera_get_focus_area
camera_set_focus_area
Read or set Focus area.
Set takes value: string
camera_get_subject_detection
camera_set_subject_detection
Read or set Subject detection.
Set takes value: "On" | "Off"
camera_get_detection_subject
camera_set_detection_subject
Read or set Detection subject.
Set takes value: string
camera_get_eye_selection
camera_set_eye_selection
Read or set Eye selection.
Set takes value: "Auto" | "Off" | "Right" | "Left"
camera_get_continuous_autofocus
camera_set_continuous_autofocus
Read or set Continuous AF.
Set takes value: "On" | "Off"

Zoom and stabilisation

ToolDoes
camera_zoom_toZoom to a focal length. Go to 35 mm, for example.
Takes focalLengthMillimetres: number
camera_start_zoomStart zooming. Zoom in or out until stopped.
Takes direction: "in" | "out", speed: "slow" | "medium" | "fast"
camera_stop_zoomStop zooming. Stop the zoom.
camera_get_digital_zoom
camera_set_digital_zoom
Read or set Digital zoom.
Set takes value: string
camera_get_image_stabilization
camera_set_image_stabilization
Read or set Image stabilisation.
Set takes value: string

Photos

ToolDoes
camera_take_photoTake a photo. Take one photo and get its file name.
Takes autofocus?: boolean, destination?: "card" | "computer" | "computerOnly", download?: boolean, rawCompression?: "Compressed" | "Lossless" | "High efficiency★" | "High efficiency", includeInfo?: boolean
camera_get_drive_mode
camera_set_drive_mode
Read or set Drive mode.
Set takes value: string
camera_get_shutter_type
camera_set_shutter_type
Read or set Shutter type.
Set takes value: "Auto" | "Mechanical" | "Electronic" | "Electronic front curtain"
camera_get_flash_mode
camera_set_flash_mode
Read or set Flash.
Set takes value: string
camera_get_photo_format
camera_set_photo_format
Read or set Photo format.
Set takes value: string
camera_get_photo_size
camera_set_photo_size
Read or set Photo size.
Set takes value: string
camera_get_aspect_ratio
camera_set_aspect_ratio
Read or set Aspect ratio.
Set takes value: string
camera_get_jpeg_quality
camera_set_jpeg_quality
Read or set JPEG quality.
Set takes value: string
camera_get_raw_compression
camera_set_raw_compression
Read or set RAW compression.
Set takes value: "Compressed" | "Lossless" | "High efficiency★" | "High efficiency"

Live view

ToolDoes
camera_get_live_view_frameRead a live-view frame. The current picture, as a JPEG.
Takes overlay?: boolean
camera_get_live_view_quality
camera_set_live_view_quality
Read or set Live-view quality.
Set takes value: "Low" | "Medium" | "High"

Video

ToolDoes
camera_start_recordingStart recording. Start a video recording.
camera_stop_recordingStop recording. Stop and get the finished clip.
camera_get_recording_stateRecording state. Whether the camera is recording.
camera_get_photo_video_mode
camera_set_photo_video_mode
Read or set Photo / video.
Set takes value: "photo" | "video"
camera_get_video_format
camera_set_video_format
Read or set Video format.
Set takes value: string
camera_get_video_quality
camera_set_video_quality
Read or set Video quality.
Set takes value: string
camera_get_frame_rate
camera_set_frame_rate
Read or set Frame rate.
Set takes value: string
camera_get_audio_recording
camera_set_audio_recording
Read or set Audio recording.
Set takes value: "On" | "Off" | "On (manual level)"
camera_get_audio_level
camera_set_audio_level
Read or set Audio level.
Set takes value: number

Colour and look

ToolDoes
camera_get_white_balance
camera_set_white_balance
Read or set White balance.
Set takes value: string
camera_get_color_temperature
camera_set_color_temperature
Read or set Colour temperature.
Set takes value: number
camera_get_picture_style
camera_set_picture_style
Read or set Look.
Set takes value: string
camera_get_picture_profile
camera_set_picture_profile
Read or set Picture profile.
Set takes value: string

Card and files

ToolDoes
camera_get_card_statusCard space. Free space, photos and recording time left.
camera_list_mediaList photos and clips. The photos and clips on the card, newest first.
camera_get_media_previewPreview a file. A small JPEG of a photo or clip.
Takes id: string, size?: "thumbnail" | "preview"
camera_download_mediaDownload a file. Copy a photo or clip off the card.
Takes id: string

Battery and clock

ToolDoes
camera_get_batteryBattery. Charge, minutes left and power source.
camera_set_clockSet the clock. Set the camera's date and time.
Takes moment?: string (ISO 8601)

Benchmark

ToolDoes
camera_run_benchmarkReads what an idle camera offers (its operations, events and numeric settings) and saves a profile. It takes no photo and records nothing, and can take up to three minutes. Studio does not serve it, darkgrade mcp lists it but cannot run it, and on your own server it fails unless your server offers a benchmark. What differs from Studio
Takes camera: string on your own server only
⌘I