Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/diegorafs/Chrome-DevTools-MCP
/ functions
Functions
256 in github.com/diegorafs/Chrome-DevTools-MCP
⨍
Functions
256
◇
Types & classes
58
↓ 100 callers
Function
withBrowser
( cb: (response: McpResponse, context: McpContext) => Promise<void>, options: {debug?: boolean} = {}, )
tests/utils.ts:16
↓ 78 callers
Method
getSelectedPage
()
src/McpContext.ts:216
↓ 66 callers
Method
appendResponseLine
(value: string)
src/tools/ToolDefinition.ts:43
↓ 49 callers
Method
findElementsByDescription
* Find elements on the page based on natural language description * @throws {Error} If page is not ready or description is invalid
src/ai-element-locator/ElementLocator.ts:108
↓ 38 callers
Function
getMockRequest
( options: { method?: string; response?: HTTPResponse; failure?: HTTPRequest['failure']; res
tests/utils.ts:43
↓ 30 callers
Function
defineTool
( definition: ToolDefinition<Schema>, )
src/tools/ToolDefinition.ts:84
↓ 26 callers
Method
handle
( toolName: string, context: McpContext, )
src/McpResponse.ts:118
↓ 22 callers
Method
dispose
()
src/Mutex.ts:13
↓ 20 callers
Method
from
(browser: Browser, logger: Debugger)
src/McpContext.ts:126
↓ 17 callers
Method
createTextSnapshot
* Creates a text snapshot of a page.
src/McpContext.ts:315
↓ 13 callers
Function
formatConsoleEvent
( event: ConsoleMessage | Error, )
src/formatters/consoleFormatter.ts:22
↓ 13 callers
Function
html
( strings: TemplateStringsArray, ...values: unknown[] )
tests/utils.ts:90
↓ 13 callers
Method
newPage
()
src/McpContext.ts:142
↓ 13 callers
Method
setIncludeNetworkRequests
( value: boolean, options?: {pageSize?: number; pageIdx?: number; resourceTypes?: string[]}, )
src/tools/ToolDefinition.ts:45
↓ 12 callers
Method
getData
(page: Page)
src/PageCollector.ts:74
↓ 12 callers
Method
goto
()
tests/open-the-internet.test.ts:47
↓ 12 callers
Method
setIncludeSnapshot
(value: boolean)
src/tools/ToolDefinition.ts:50
↓ 11 callers
Method
waitForEventsAfterAction
(action: () => Promise<unknown>)
src/McpContext.ts:403
↓ 10 callers
Function
getMockConsoleMessage
(options: { type: string; text: string; location?: { url?: string; lineNumber?: number; colu
tests/formatters/consoleFormatter.test.ts:14
↓ 10 callers
Method
setIsRunningPerformanceTrace
(x: boolean)
src/McpContext.ts:200
↓ 9 callers
Method
getElementByUid
* Get element by UID from cache
src/ai-element-locator/DOMInspector.ts:776
↓ 9 callers
Method
setIncludePages
(value: boolean)
src/tools/ToolDefinition.ts:44
↓ 8 callers
Method
getNetworkConditions
()
src/McpContext.ts:184
↓ 8 callers
Method
getSelectedPageIdx
()
src/McpContext.ts:238
↓ 8 callers
Function
getShortDescriptionForRequest
(request: HTTPRequest)
src/formatters/networkFormatter.ts:9
↓ 8 callers
Method
setConfig
* Update configuration * @param config - Partial configuration to update
src/ai-element-locator/ElementLocator.ts:1177
↓ 7 callers
Method
getCpuThrottlingRate
()
src/McpContext.ts:195
↓ 7 callers
Method
getElementHandle
* Get element handle by UID for interaction * @param uid - Unique identifier of the element * @returns ElementHandle or null if not found * @
src/ai-element-locator/ElementLocator.ts:937
↓ 7 callers
Method
init
()
src/PageCollector.ts:27
↓ 6 callers
Method
getDialog
()
src/McpContext.ts:208
↓ 6 callers
Function
launch
(options: McpLaunchOptions)
src/browser.ts:75
↓ 6 callers
Function
loadTraceAsBuffer
(filePath: string)
tests/trace-processing/fixtures/load.ts:17
↓ 6 callers
Method
setCpuThrottlingRate
(rate: number)
src/McpContext.ts:189
↓ 6 callers
Method
setNetworkConditions
(conditions: string | null)
src/McpContext.ts:174
↓ 6 callers
Method
setSelectedPageIdx
(idx: number)
src/McpContext.ts:246
↓ 5 callers
Method
attachImage
(value: ImageContentData)
src/tools/ToolDefinition.ts:51
↓ 5 callers
Function
formatA11ySnapshot
( serializedAXNodeRoot: TextSnapshotNode, depth = 0, )
src/formatters/snapshotFormatter.ts:8
↓ 5 callers
Method
getElements
* Get or update elements cache
src/ai-element-locator/ElementCoordinateMapper.ts:289
↓ 5 callers
Function
getFormattedHeaderValue
( headers: Record<string, string>, )
src/formatters/networkFormatter.ts:31
↓ 5 callers
Function
getMockBrowser
()
tests/PageCollector.test.ts:43
↓ 5 callers
Function
parseArguments
(version: string, argv = process.argv)
src/cli.ts:90
↓ 5 callers
Function
parseRawTraceBuffer
( buffer: Uint8Array<ArrayBufferLike> | undefined, )
src/trace-processing/parse.ts:30
↓ 5 callers
Method
storeTraceRecording
(result: TraceResult)
src/McpContext.ts:387
↓ 4 callers
Method
formatElement
* Format single element
src/ai-element-locator/ConciseOutputFormatter.ts:132
↓ 4 callers
Method
getPageByIdx
(idx: number)
src/McpContext.ts:229
↓ 4 callers
Method
interactWithElement
* Interact with an element by UID * @param uid - Element unique identifier * @param action - Type of interaction (click, type, hover, focus, scr
src/ai-element-locator/ElementLocator.ts:1005
↓ 4 callers
Method
isRunningPerformanceTrace
()
src/McpContext.ts:204
↓ 4 callers
Method
recordedTraces
()
src/McpContext.ts:391
↓ 4 callers
Function
writeFile
* Writes content to a file. * @param filePath The path to the file. * @param content The content to write.
scripts/post-build.ts:19
↓ 3 callers
Method
#initializePage
(page: Page)
src/PageCollector.ts:46
↓ 3 callers
Method
#updateSelectedPageTimeouts
()
src/McpContext.ts:255
↓ 3 callers
Method
analyzeElements
* Analyze visual properties of elements on the page
src/ai-element-locator/VisualElementAnalyzer.ts:70
↓ 3 callers
Method
createPagesSnapshot
* Creates a snapshot of the pages.
src/McpContext.ts:303
↓ 3 callers
Method
elementExists
* Check if element matching description exists on page * @param description - Natural language description * @returns true if element exists wit
src/ai-element-locator/ElementLocator.ts:1163
↓ 3 callers
Function
formatArgs
(args: readonly JSHandle[])
src/formatters/consoleFormatter.ts:74
↓ 3 callers
Function
getMockResponse
( options: { status?: number; } = {}, )
tests/utils.ts:78
↓ 3 callers
Method
inspectDOM
* Perform deep inspection of the entire DOM
src/ai-element-locator/DOMInspector.ts:194
↓ 3 callers
Method
restore
()
tests/server.ts:85
↓ 3 callers
Method
setIncludeConsoleData
(value: boolean)
src/tools/ToolDefinition.ts:49
↓ 3 callers
Function
withClient
(cb: (client: Client) => Promise<void>)
tests/index.test.ts:15
↓ 3 callers
Method
withRetry
* Execute a function with retry logic * @private
src/ai-element-locator/ElementLocator.ts:219
↓ 2 callers
Function
addCrossLinks
(text: string, tools: ToolWithAnnotations[])
scripts/generate-docs.ts:34
↓ 2 callers
Method
addHtmlRoute
(path: string, htmlContent: string)
tests/server.ts:50
↓ 2 callers
Method
addPage
(page: Page)
src/PageCollector.ts:42
↓ 2 callers
Method
attachNetworkRequest
(url: string)
src/tools/ToolDefinition.ts:52
↓ 2 callers
Method
detectElementGroups
* Detect element groups based on visual similarity and proximity
src/ai-element-locator/VisualElementAnalyzer.ts:162
↓ 2 callers
Function
escapeHtmlTags
(text: string)
scripts/generate-docs.ts:28
↓ 2 callers
Method
extractElementsWithVisualData
* Extract all interactive elements with their visual properties
src/ai-element-locator/ElementLocator.ts:355
↓ 2 callers
Function
formatStackFrame
(stackFrame: ConsoleMessageLocation)
src/formatters/consoleFormatter.ts:90
↓ 2 callers
Method
getConfig
* Get current configuration * @returns Current configuration
src/ai-element-locator/ElementLocator.ts:1197
↓ 2 callers
Method
getElementAtPoint
* Find element at specific screen coordinates
src/ai-element-locator/ElementCoordinateMapper.ts:39
↓ 2 callers
Method
getElementByUid
(uid: string)
src/McpContext.ts:275
↓ 2 callers
Method
getElementRelationships
* Get spatial relationships between elements
src/ai-element-locator/ElementCoordinateMapper.ts:176
↓ 2 callers
Method
getFormatConfig
* Get configuration for output format
src/ai-element-locator/ConciseOutputFormatter.ts:64
↓ 2 callers
Function
getNetworkMultiplierFromString
(condition: string | null)
src/McpContext.ts:44
↓ 2 callers
Method
getNetworkRequests
()
src/McpContext.ts:132
↓ 2 callers
Method
getRoute
(path: string)
tests/server.ts:43
↓ 2 callers
Function
getStatusFromRequest
(request: HTTPRequest)
src/formatters/networkFormatter.ts:13
↓ 2 callers
Function
getTraceSummary
(result: TraceResult)
src/trace-processing/parse.ts:82
↓ 2 callers
Method
highlightElements
* Highlight elements on the page for debugging
src/ai-element-locator/VisualElementAnalyzer.ts:227
↓ 2 callers
Function
mockListener
()
tests/PageCollector.test.ts:15
↓ 2 callers
Function
parseTrace
(fileName: string)
tests/tools/performance.test.ts:143
↓ 2 callers
Function
sed
* Replaces content in a file. * @param filePath The path to the file. * @param find The regex to find. * @param replace The string to replace with.
scripts/post-build.ts:29
↓ 2 callers
Method
start
()
tests/server.ts:89
↓ 2 callers
Method
stop
()
tests/server.ts:95
↓ 2 callers
Function
stopTracingAndAppendOutput
( page: Page, response: Response, context: Context, )
src/tools/performance.ts:159
↓ 2 callers
Method
timeout
(time: number)
src/WaitForHelper.ts:117
↓ 2 callers
Function
traceResultIsSuccess
( x: TraceResult | TraceParseError, )
src/trace-processing/parse.ts:20
↓ 2 callers
Method
updateCache
* Update the elements cache manually
src/ai-element-locator/ElementCoordinateMapper.ts:305
↓ 2 callers
Method
waitForElement
* Wait for an element matching description to appear * @param description - Natural language description * @param timeout - Maximum wait time in
src/ai-element-locator/ElementLocator.ts:1131
↓ 1 callers
Method
#dataWithPagination
(data: T[], pagination?: PaginationOptions)
src/McpResponse.ts:249
↓ 1 callers
Method
#getIncludeNetworkRequestsData
(context: McpContext)
src/McpResponse.ts:275
↓ 1 callers
Method
#handle
(req: IncomingMessage, res: ServerResponse)
tests/server.ts:71
↓ 1 callers
Method
#init
()
src/McpContext.ts:119
↓ 1 callers
Method
acquire
()
src/Mutex.ts:22
↓ 1 callers
Method
addRoute
( path: string, handler: (req: IncomingMessage, res: ServerResponse) => void, )
tests/server.ts:61
↓ 1 callers
Method
annotateScreenshot
* Annotate screenshot with element bounding boxes and labels
src/ai-element-locator/ElementLocator.ts:833
↓ 1 callers
Method
arrayBufferToBase64
* Convert Uint8Array to base64 string
src/ai-element-locator/ElementLocator.ts:922
↓ 1 callers
Method
buildAccessibilityTree
* Build accessibility tree from nodes
src/ai-element-locator/ElementLocator.ts:312
↓ 1 callers
Method
calculateDistance
* Calculate distance between two bounding boxes
src/ai-element-locator/VisualElementAnalyzer.ts:206
next →
1–100 of 256, ranked by callers