ComputerUseService
Section titled “ComputerUseService”Properties:
serviceAddonProcessesServicemouseMouseServicekeyboardKeyboardServicescreenScreenServicedisplayDisplayServicea11yA11yServicerecordingRecordingService
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ComputerUseService(transport: ComputerUseTransport): ComputerUseService;Parameters:
transportComputerUseTransport
Returns:
ComputerUseService
Methods
Section titled “Methods”restart()
Section titled “restart()”restart(): Promise<ComputerUseRestartResponse>;Returns:
Promise<ComputerUseRestartResponse>
start()
Section titled “start()”start(): Promise<ComputerUseLifecycleResponse>;Returns:
Promise<ComputerUseLifecycleResponse>
status()
Section titled “status()”status(): Promise<ComputerUseStatusResponse>;Returns:
Promise<ComputerUseStatusResponse>
stop()
Section titled “stop()”stop(): Promise<ComputerUseLifecycleResponse>;Returns:
Promise<ComputerUseLifecycleResponse>
AddonProcessesService
Section titled “AddonProcessesService”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AddonProcessesService(transport: ComputerUseTransport): AddonProcessesService;Parameters:
transportComputerUseTransport
Returns:
AddonProcessesService
Methods
Section titled “Methods”errors()
Section titled “errors()”errors(name: string): Promise<ComputerUseProcessErrorsResponse>;Parameters:
namestring
Returns:
Promise<ComputerUseProcessErrorsResponse>
logs()
Section titled “logs()”logs(name: string): Promise<ComputerUseProcessLogsResponse>;Parameters:
namestring
Returns:
Promise<ComputerUseProcessLogsResponse>
restart()
Section titled “restart()”restart(name: string): Promise<ComputerUseProcessRestartResponse>;Parameters:
namestring
Returns:
Promise<ComputerUseProcessRestartResponse>
status()
Section titled “status()”status(): Promise<Record<string, ComputerUseProcessStatus>>;Returns:
Promise<Record<string, ComputerUseProcessStatus>>
status()
Section titled “status()”status(name: string): Promise<ComputerUseProcessRunningStatus>;Parameters:
namestring
Returns:
Promise<ComputerUseProcessRunningStatus>
status()
Section titled “status()”status( name?: string): Promise<Record<string, ComputerUseProcessStatus> | ComputerUseProcessRunningStatus>;Parameters:
name?string
Returns:
Promise<Record<string, ComputerUseProcessStatus> | ComputerUseProcessRunningStatus>
A11yService
Section titled “A11yService”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new A11yService(transport: ComputerUseTransport): A11yService;Parameters:
transportComputerUseTransport
Returns:
A11yService
Methods
Section titled “Methods”find()
Section titled “find()”find(request: ComputerUseA11yFindRequest): Promise<ComputerUseA11yFindResponse>;Parameters:
requestComputerUseA11yFindRequest
Returns:
Promise<ComputerUseA11yFindResponse>
focus()
Section titled “focus()”focus(request: ComputerUseA11yFocusRequest): Promise<void>;Parameters:
requestComputerUseA11yFocusRequest
Returns:
Promise<void>
invoke()
Section titled “invoke()”invoke(request: ComputerUseA11yInvokeRequest): Promise<void>;Parameters:
requestComputerUseA11yInvokeRequest
Returns:
Promise<void>
setValue()
Section titled “setValue()”setValue(request: ComputerUseA11ySetValueRequest): Promise<void>;Parameters:
requestComputerUseA11ySetValueRequest
Returns:
Promise<void>
tree()
Section titled “tree()”tree(options: ComputerUseA11yTreeOptions): Promise<ComputerUseA11yTreeResponse>;Parameters:
optionsComputerUseA11yTreeOptions
Returns:
Promise<ComputerUseA11yTreeResponse>
DisplayService
Section titled “DisplayService”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DisplayService(transport: ComputerUseTransport): DisplayService;Parameters:
transportComputerUseTransport
Returns:
DisplayService
Methods
Section titled “Methods”info()
Section titled “info()”info(): Promise<ComputerUseDisplayInfoResponse>;Returns:
Promise<ComputerUseDisplayInfoResponse>
windows()
Section titled “windows()”windows(): Promise<ComputerUseDisplayWindowsResponse>;Returns:
Promise<ComputerUseDisplayWindowsResponse>
KeyboardService
Section titled “KeyboardService”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new KeyboardService(transport: ComputerUseTransport): KeyboardService;Parameters:
transportComputerUseTransport
Returns:
KeyboardService
Methods
Section titled “Methods”hotkey()
Section titled “hotkey()”hotkey(request: ComputerUseKeyboardHotkeyRequest): Promise<void>;Parameters:
requestComputerUseKeyboardHotkeyRequest
Returns:
Promise<void>
key(request: ComputerUseKeyboardKeyRequest): Promise<void>;Parameters:
requestComputerUseKeyboardKeyRequest
Returns:
Promise<void>
type()
Section titled “type()”type(request: ComputerUseKeyboardTypeRequest): Promise<void>;Parameters:
requestComputerUseKeyboardTypeRequest
Returns:
Promise<void>
MouseService
Section titled “MouseService”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MouseService(transport: ComputerUseTransport): MouseService;Parameters:
transportComputerUseTransport
Returns:
MouseService
Methods
Section titled “Methods”click()
Section titled “click()”click(request: ComputerUseMouseClickRequest): Promise<ComputerUsePoint>;Parameters:
requestComputerUseMouseClickRequest
Returns:
Promise<ComputerUsePoint>
drag()
Section titled “drag()”drag(request: ComputerUseMouseDragRequest): Promise<ComputerUsePoint>;Parameters:
requestComputerUseMouseDragRequest
Returns:
Promise<ComputerUsePoint>
move()
Section titled “move()”move(request: ComputerUseMouseMoveRequest): Promise<ComputerUsePoint>;Parameters:
requestComputerUseMouseMoveRequest
Returns:
Promise<ComputerUsePoint>
position()
Section titled “position()”position(): Promise<ComputerUsePoint>;Returns:
Promise<ComputerUsePoint>
scroll()
Section titled “scroll()”scroll(request: ComputerUseMouseScrollRequest): Promise<ComputerUseScrollResponse>;Parameters:
requestComputerUseMouseScrollRequest
Returns:
Promise<ComputerUseScrollResponse>
RecordingService
Section titled “RecordingService”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RecordingService(transport: ComputerUseTransport): RecordingService;Parameters:
transportComputerUseTransport
Returns:
RecordingService
Methods
Section titled “Methods”delete()
Section titled “delete()”delete(id: string): Promise<void>;Parameters:
idstring
Returns:
Promise<void>
download()
Section titled “download()”download(id: string): Promise<Uint8Array>;Parameters:
idstring
Returns:
Promise<Uint8Array>
get(id: string): Promise<ComputerUseRecording>;Parameters:
idstring
Returns:
Promise<ComputerUseRecording>
list()
Section titled “list()”list(): Promise<ComputerUseRecordingsResponse>;Returns:
Promise<ComputerUseRecordingsResponse>
start()
Section titled “start()”start(request: ComputerUseRecordingStartRequest = {}): Promise<ComputerUseRecording>;Parameters:
requestComputerUseRecordingStartRequest = {}
Returns:
Promise<ComputerUseRecording>
stop()
Section titled “stop()”stop(request: ComputerUseRecordingStopRequest): Promise<ComputerUseRecording>;Parameters:
requestComputerUseRecordingStopRequest
Returns:
Promise<ComputerUseRecording>
ScreenService
Section titled “ScreenService”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ScreenService(transport: ComputerUseTransport): ScreenService;Parameters:
transportComputerUseTransport
Returns:
ScreenService
Methods
Section titled “Methods”capture()
Section titled “capture()”capture( options: { readonly showCursor?: boolean } = {}): Promise<ComputerUseScreenshotResponse>;Parameters:
options{ readonly showCursor?: boolean } = {}
Returns:
Promise<ComputerUseScreenshotResponse>
captureCompressed()
Section titled “captureCompressed()”captureCompressed( options: ComputerUseScreenshotCompressedOptions = {}): Promise<ComputerUseScreenshotResponse>;Parameters:
optionsComputerUseScreenshotCompressedOptions = {}
Returns:
Promise<ComputerUseScreenshotResponse>
region()
Section titled “region()”region( options: ComputerUseScreenshotRegionOptions): Promise<ComputerUseScreenshotResponse>;Parameters:
optionsComputerUseScreenshotRegionOptions
Returns:
Promise<ComputerUseScreenshotResponse>
regionCompressed()
Section titled “regionCompressed()”regionCompressed( options: ComputerUseScreenshotRegionCompressedOptions): Promise<ComputerUseScreenshotResponse>;Parameters:
optionsComputerUseScreenshotRegionCompressedOptions
Returns:
Promise<ComputerUseScreenshotResponse>
screenshot()
Section titled “screenshot()”screenshot( options: { readonly showCursor?: boolean } = {}): Promise<ComputerUseScreenshotResponse>;Parameters:
options{ readonly showCursor?: boolean } = {}
Returns:
Promise<ComputerUseScreenshotResponse>
screenshotCompressed()
Section titled “screenshotCompressed()”screenshotCompressed( options: ComputerUseScreenshotCompressedOptions = {}): Promise<ComputerUseScreenshotResponse>;Parameters:
optionsComputerUseScreenshotCompressedOptions = {}
Returns:
Promise<ComputerUseScreenshotResponse>
screenshotRegion()
Section titled “screenshotRegion()”screenshotRegion( options: ComputerUseScreenshotRegionOptions): Promise<ComputerUseScreenshotResponse>;Parameters:
optionsComputerUseScreenshotRegionOptions
Returns:
Promise<ComputerUseScreenshotResponse>
screenshotRegionCompressed()
Section titled “screenshotRegionCompressed()”screenshotRegionCompressed( options: ComputerUseScreenshotRegionCompressedOptions): Promise<ComputerUseScreenshotResponse>;Parameters:
optionsComputerUseScreenshotRegionCompressedOptions
Returns:
Promise<ComputerUseScreenshotResponse>
ComputerUseTransport
Section titled “ComputerUseTransport”Methods
Section titled “Methods”delete()
Section titled “delete()”delete<T>(path: string): Promise<T>;Parameters:
pathstring
Returns:
Promise<T>
get<T>(path: string, config?: { params?: Record<string, unknown> }): Promise<T>;Parameters:
pathstringconfig?{ params?: Record<string, unknown> }
Returns:
Promise<T>
getBytes()
Section titled “getBytes()”getBytes(path: string): Promise<ArrayBuffer>;Parameters:
pathstring
Returns:
Promise<ArrayBuffer>
post()
Section titled “post()”post<T>(path: string, body?: unknown): Promise<T>;Parameters:
pathstringbody?unknown
Returns:
Promise<T>
ComputerUseActivityStatus
Section titled “ComputerUseActivityStatus”type ComputerUseActivityStatus = 'active' | 'inactive' | 'unknown'ComputerUseDesktopState
Section titled “ComputerUseDesktopState”type ComputerUseDesktopState = 'not_started' | 'starting' | 'ready' | 'failed' | 'unknown'ComputerUseDesktopFailureCode
Section titled “ComputerUseDesktopFailureCode”type ComputerUseDesktopFailureCode = | 'desktop_exited' | 'addon_crashed' | 'start_failed' | 'start_interrupted' | 'session_ended' | 'session_replaced' | 'state_corrupt' | 'state_persistence_failed' | 'unknown'ComputerUseDesktopFailure
Section titled “ComputerUseDesktopFailure”Properties:
codeComputerUseDesktopFailureCoderawCodestringmessagestringextraFields?Record<string, unknown>
ComputerUseFailedStatus
Section titled “ComputerUseFailedStatus”Properties:
status‘inactive’desktop‘failed’causeComputerUseDesktopFailureextraFields?Record<string, unknown>
ComputerUseNotStartedStatus
Section titled “ComputerUseNotStartedStatus”Properties:
status‘inactive’desktop‘not_started’cause?neverextraFields?Record<string, unknown>
ComputerUseReadyStatus
Section titled “ComputerUseReadyStatus”Properties:
status‘active’desktop‘ready’cause?neverextraFields?Record<string, unknown>
ComputerUseRestartResponse
Section titled “ComputerUseRestartResponse”Properties:
messagestringstatus‘active’desktop‘ready’extraFields?Record<string, unknown>
ComputerUseStartingStatus
Section titled “ComputerUseStartingStatus”Properties:
status‘inactive’desktop‘starting’cause?neverextraFields?Record<string, unknown>
ComputerUseUnknownStatus
Section titled “ComputerUseUnknownStatus”A (status, desktop) pair this SDK release does not recognize, because a
newer daemon added a value or a combination. rawStatus / rawDesktop carry
what the daemon sent; the recognized variants need no raw sibling, since
their typed values are the wire values.
Properties:
status‘unknown’desktop‘unknown’rawStatusstringrawDesktopstringcause?ComputerUseDesktopFailure - The failure the daemon attached to the unrecognized state, when it sent one.extraFields?Record<string, unknown>
ComputerUseA11yFindRequest
Section titled “ComputerUseA11yFindRequest”Properties:
scopeComputerUseA11yScopepid?numberrole?stringname?stringnameMatch?ComputerUseA11yNameMatchstates?string[]limit?number
ComputerUseA11yFindResponse
Section titled “ComputerUseA11yFindResponse”Properties:
matchesComputerUseAccessibilityNode[]truncatedboolean
ComputerUseA11yFocusRequest
Section titled “ComputerUseA11yFocusRequest”Properties:
idstring
ComputerUseA11yInvokeRequest
Section titled “ComputerUseA11yInvokeRequest”Properties:
idstringaction?string
ComputerUseA11yNameMatch
Section titled “ComputerUseA11yNameMatch”type ComputerUseA11yNameMatch = 'exact' | 'substring' | 'regex'ComputerUseA11yScope
Section titled “ComputerUseA11yScope”type ComputerUseA11yScope = 'focused' | 'pid' | 'all'ComputerUseA11ySetValueRequest
Section titled “ComputerUseA11ySetValueRequest”Properties:
idstringvaluestring
ComputerUseA11yTreeOptions
Section titled “ComputerUseA11yTreeOptions”Properties:
scopeComputerUseA11yScopepid?numbermaxDepth?number
ComputerUseA11yTreeResponse
Section titled “ComputerUseA11yTreeResponse”Properties:
rootComputerUseAccessibilityNodetruncatedboolean
ComputerUseAccessibilityBounds
Section titled “ComputerUseAccessibilityBounds”Properties:
xnumberynumberwidthnumberheightnumber
ComputerUseAccessibilityNode
Section titled “ComputerUseAccessibilityNode”Properties:
idstringrolestringnamestringdescription?stringvalue?string - A control’s current value (macOS). Never set for password fields.valueTruncatedboolean -valuewas cut at the platform’s cap.falsewhen uncut or not reported; the SDK always fills it.boundsComputerUseAccessibilityBoundsstatesstring[]actions?string[]children?ComputerUseAccessibilityNode[]
ComputerUseDisplay
Section titled “ComputerUseDisplay”Properties:
idnumberxnumberynumberwidthnumberheightnumberisActiveboolean
ComputerUseDisplayInfoResponse
Section titled “ComputerUseDisplayInfoResponse”Properties:
displaysComputerUseDisplay[]
ComputerUseDisplayWindowsResponse
Section titled “ComputerUseDisplayWindowsResponse”Properties:
windowsComputerUseWindow[]
ComputerUseKeyboardHotkeyRequest
Section titled “ComputerUseKeyboardHotkeyRequest”Properties:
keysstring
ComputerUseKeyboardKeyRequest
Section titled “ComputerUseKeyboardKeyRequest”Properties:
keystringmodifiers?ComputerUseKeyboardModifier[]
ComputerUseKeyboardModifier
Section titled “ComputerUseKeyboardModifier”type ComputerUseKeyboardModifier = 'ctrl' | 'alt' | 'shift' | 'cmd'ComputerUseKeyboardTypeRequest
Section titled “ComputerUseKeyboardTypeRequest”Properties:
textstringdelay?number
ComputerUseLifecycleResponse
Section titled “ComputerUseLifecycleResponse”Properties:
messagestringstatusRecord<string, ComputerUseProcessStatus>
ComputerUseMouseButton
Section titled “ComputerUseMouseButton”type ComputerUseMouseButton = 'left' | 'right' | 'middle'ComputerUseMouseClickRequest
Section titled “ComputerUseMouseClickRequest”Properties:
xnumberynumberbutton?ComputerUseMouseButtondouble?boolean
ComputerUseMouseDragRequest
Section titled “ComputerUseMouseDragRequest”Properties:
startXnumberstartYnumberendXnumberendYnumberbuttonComputerUseMouseButton
ComputerUseMouseMoveRequest
Section titled “ComputerUseMouseMoveRequest”Properties:
xnumberynumber
ComputerUseMouseScrollRequest
Section titled “ComputerUseMouseScrollRequest”Properties:
xnumberynumberdirectionComputerUseScrollDirectionamount?number
ComputerUsePoint
Section titled “ComputerUsePoint”Properties:
xnumberynumber
ComputerUseProcessErrorsResponse
Section titled “ComputerUseProcessErrorsResponse”Properties:
processNamestringerrorsstring
ComputerUseProcessLogsResponse
Section titled “ComputerUseProcessLogsResponse”Properties:
processNamestringlogsstring
ComputerUseProcessRestartResponse
Section titled “ComputerUseProcessRestartResponse”Properties:
messagestringprocessNamestring
ComputerUseProcessRunningStatus
Section titled “ComputerUseProcessRunningStatus”Properties:
processNamestringrunningboolean
ComputerUseProcessStatus
Section titled “ComputerUseProcessStatus”Properties:
running?booleanpriority?numberautoRestart?booleanpid?numberfailed?booleanrestartAttempts?numberrestartBackoffMs?numberstatus?stringextraFields?Record<string, unknown>
ComputerUseRecording
Section titled “ComputerUseRecording”Properties:
idstringfileNamestringfilePathstringstartTimestringendTime?stringstatusstringdurationSeconds?numbersizeBytes?number
ComputerUseRecordingsResponse
Section titled “ComputerUseRecordingsResponse”Properties:
recordingsComputerUseRecording[]
ComputerUseRecordingStartRequest
Section titled “ComputerUseRecordingStartRequest”Properties:
label?string
ComputerUseRecordingStopRequest
Section titled “ComputerUseRecordingStopRequest”Properties:
idstring
ComputerUseScreenshotCompressedOptions
Section titled “ComputerUseScreenshotCompressedOptions”Properties:
format?ComputerUseScreenshotFormatquality?numberscale?numbershowCursor?boolean
ComputerUseScreenshotFormat
Section titled “ComputerUseScreenshotFormat”type ComputerUseScreenshotFormat = 'png' | 'jpeg'ComputerUseScreenshotRegionCompressedOptions
Section titled “ComputerUseScreenshotRegionCompressedOptions”Properties:
xnumberynumberwidthnumberheightnumbershowCursor?booleanformat?ComputerUseScreenshotFormatquality?numberscale?number
ComputerUseScreenshotRegionOptions
Section titled “ComputerUseScreenshotRegionOptions”Properties:
xnumberynumberwidthnumberheightnumbershowCursor?boolean
ComputerUseScreenshotResponse
Section titled “ComputerUseScreenshotResponse”Properties:
screenshotstringcursorPosition?ComputerUsePointsizeBytes?number
ComputerUseScrollDirection
Section titled “ComputerUseScrollDirection”type ComputerUseScrollDirection = 'up' | 'down'ComputerUseScrollResponse
Section titled “ComputerUseScrollResponse”Properties:
successboolean
ComputerUseStatusResponse
Section titled “ComputerUseStatusResponse”type ComputerUseStatusResponse = | ComputerUseNotStartedStatus | ComputerUseStartingStatus | ComputerUseReadyStatus | ComputerUseFailedStatus | ComputerUseUnknownStatusComputerUseWindow
Section titled “ComputerUseWindow”Properties:
idnumbertitlestringxnumberynumberwidthnumberheightnumberisActiveboolean