MCPcopy Create free account

hub / github.com/browser-use/browser-harness-js / functions

Functions38 in github.com/browser-use/browser-harness-js

↓ 652 callersMethod_call
(method: string, params?: unknown)
sdk/generated.ts:6
↓ 24 callersFunctionpush
(name: string, profileDir: string)
sdk/session.ts:323
↓ 5 callersFunctionescId
(name: string)
sdk/gen.ts:71
↓ 4 callersFunctionjsdocLines
(text: string | undefined, indent: string)
sdk/gen.ts:78
↓ 4 callersFunctionrenderType
Render a type (Prop or CdpType) to a TS type string in the context of `currentDomain`.
sdk/gen.ts:88
↓ 2 callersMethodclose
()
sdk/session.ts:132
↓ 2 callersFunctiongetBrowserCandidates
OS-specific user-data dirs for Chromium-based browsers, in rough popularity order.
sdk/session.ts:320
↓ 2 callersMethodopenWs
(wsUrl: string, timeoutMs: number)
sdk/session.ts:104
↓ 2 callersFunctionrenderInterfaceBody
Param/return interface. Returns the body (without surrounding interface keyword).
sdk/gen.ts:152
↓ 1 callersMethod_call
(method: string, params: unknown = {})
sdk/session.ts:181
↓ 1 callersFunctionbindDomains
(t: Transport)
sdk/generated.ts:14391
↓ 1 callersFunctionbuild
()
sdk/gen.ts:166
↓ 1 callersFunctiondetectBrowsers
()
sdk/session.ts:298
↓ 1 callersMethodgetActiveSession
()
sdk/session.ts:151
↓ 1 callersFunctionisAllOptional
(props: Prop[] | undefined)
sdk/gen.ts:161
↓ 1 callersFunctionisBrowserLevel
Browser-level methods never take a sessionId.
sdk/session.ts:221
↓ 1 callersMethodisConnected
()
sdk/session.ts:128
↓ 1 callersFunctionisExpression
(code: string)
sdk/repl.ts:31
↓ 1 callersFunctionlistPageTargets
(session: Session)
sdk/session.ts:278
↓ 1 callersFunctionloadDomains
()
sdk/gen.ts:61
↓ 1 callersMethodonEvent
Subscribe to all CDP events. Returns an unsubscribe fn.
sdk/session.ts:156
↓ 1 callersMethodonMessage
(raw: string)
sdk/session.ts:196
↓ 1 callersFunctionreadDevToolsActivePort
* Parse both lines of DevToolsActivePort. Chrome writes: * line 1: port number * line 2: path (e.g. "/devtools/browser/<uuid>") * With both in
sdk/session.ts:250
↓ 1 callersFunctionrenderObject
(props: Prop[], currentDomain: string, indent: string)
sdk/gen.ts:120
↓ 1 callersFunctionrenderResult
* Render a value to the body of a successful /eval response. * - undefined / null / "" / {} / [] → empty (caller prints nothing) * - string → raw (
sdk/repl.ts:62
↓ 1 callersFunctionrenderTypeDef
Top-level type definition for a domain's `types[]`.
sdk/gen.ts:130
↓ 1 callersFunctionresolveWsUrl
(opts: ConnectOptions)
sdk/session.ts:235
↓ 1 callersFunctionrunSnippet
(code: string)
sdk/repl.ts:48
↓ 1 callersFunctionserialize
(v: unknown)
sdk/repl.ts:39
↓ 1 callersFunctiontryReadDevToolsActivePort
* Read and parse `<profileDir>/DevToolsActivePort` once (no polling), returning * undefined if the file is missing or malformed. Also returns mtime s
sdk/session.ts:364
Methodconnect
* Connect to Chrome's browser-level WebSocket. * * With no args, runs auto-detect: scans OS-specific profile dirs via * `detectBrowsers()` an
sdk/session.ts:75
Methodconstructor
()
sdk/session.ts:55
Methodconstructor
(public code: number, message: string, public data?: unknown)
sdk/session.ts:214
Functionfetch
(req)
sdk/repl.ts:74
Methodfinish
(err?: Error)
sdk/session.ts:108
MethodsetActiveSession
Set the active sessionId directly (e.g. one you already attached).
sdk/session.ts:147
Methoduse
* Pick a target and make subsequent calls auto-route to it. * Uses Target.attachToTarget with flatten:true (single-WS, sessionId-on-message).
sdk/session.ts:140
MethodwaitFor
Wait for the next event matching `method` (and optional predicate).
sdk/session.ts:164