Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChromeDevTools/chrome-devtools-mcp
/ functions
Functions
707 in github.com/ChromeDevTools/chrome-devtools-mcp
⨍
Functions
707
◇
Types & classes
149
↓ 37 callers
Method
get
()
src/telemetry/ClearcutLogger.ts:66
↓ 27 callers
Method
getSelectedMcpPage
()
src/McpContext.ts:362
↓ 23 callers
Method
error
()
src/McpResponse.ts:461
↓ 23 callers
Function
withMcpContext
( cb: (response: McpResponse, context: McpContext) => Promise<void>, options: { debug?: boolean; a
tests/utils.ts:114
↓ 22 callers
Method
find
( filter: (item: WithSymbolId<T>) => boolean, )
src/PageCollector.ts:131
↓ 22 callers
Method
toString
()
src/formatters/IssueFormatter.ts:48
↓ 20 callers
Method
restore
()
tests/server.ts:86
↓ 19 callers
Method
from
( browser: Browser, logger: Logger, opts: McpContextOptions, /* Let tests use unbundled Locato
src/McpContext.ts:186
↓ 17 callers
Method
appendResponseLine
(value: string)
src/tools/ToolDefinition.ts:109
↓ 16 callers
Method
assertNextCall
* Asserts that the next call in sequence has the correct name and matches expected arguments. * Increments the internal call index.
scripts/eval_result.ts:65
↓ 16 callers
Function
html
( strings: TemplateStringsArray, ...values: unknown[] )
tests/utils.ts:235
↓ 15 callers
Method
handle
(params: Record<string, unknown>)
src/ToolHandler.ts:178
↓ 15 callers
Method
sort
( aggregates: Record< string, DevTools.HeapSnapshotModel.HeapSnapshotModel.AggregatedInfo
src/formatters/HeapSnapshotFormatter.ts:170
↓ 14 callers
Function
definePageTool
( definition: PageToolDefinition<Schema> | ((args?: Args) => PageToolDefinition<Schema>), )
src/tools/ToolDefinition.ts:386
↓ 13 callers
Method
close
()
src/devtools/McpHostBindingAdapter.ts:54
↓ 12 callers
Method
addHtmlRoute
(path: string, htmlContent: string)
tests/server.ts:51
↓ 12 callers
Method
consumePageNavigation
* Consumes initial page navigation/setup boilerplate. * - Ignores/skips leading list_pages calls. * - Asserts that new_page or navigate_page was
scripts/eval_result.ts:39
↓ 12 callers
Method
getRoute
(path: string)
tests/server.ts:44
↓ 11 callers
Function
serverHooks
()
tests/server.ts:110
↓ 10 callers
Method
getSnapshot
( filePath: string, )
src/HeapSnapshotManager.ts:59
↓ 10 callers
Method
newPage
( background?: boolean, isolatedContextName?: string, )
src/McpContext.ts:300
↓ 9 callers
Method
send
(message: WatchdogMessage)
src/telemetry/WatchdogClient.ts:69
↓ 8 callers
Method
create
( page: McpPage, options: { verbose?: boolean; devtoolsData?: DevToolsData; extraHan
src/TextSnapshot.ts:47
↓ 8 callers
Function
stripUnderscoreBeforeNumber
(name: string)
src/telemetry/transformation.ts:80
↓ 8 callers
Method
toJSON
()
src/formatters/IssueFormatter.ts:56
↓ 7 callers
Method
dispose
()
src/McpPage.ts:275
↓ 7 callers
Method
emulate
(options: { networkConditions?: string; cpuThrottlingRate?: number; geolocation?: GeolocationOptio
src/McpPage.ts:544
↓ 7 callers
Function
getTextContent
( content: CallToolResult['content'][number], )
tests/utils.ts:39
↓ 6 callers
Method
dispose
()
src/utils/Mutex.ts:13
↓ 6 callers
Method
getElementByUid
(uid: string)
src/McpPage.ts:471
↓ 6 callers
Method
getPageById
(pageId: number)
src/McpContext.ts:386
↓ 6 callers
Function
parseArguments
( version: string, argv = process.argv, env = process.env, )
src/bin/chrome-devtools-mcp-cli-options.ts:372
↓ 6 callers
Method
resetResponseLineForTesting
()
src/McpResponse.ts:1502
↓ 6 callers
Function
runCli
( args: string[], sessionId?: string, )
tests/utils.ts:373
↓ 6 callers
Method
saveFile
( data: Uint8Array<ArrayBufferLike>, clientProvidedFilePath: string, extension: SupportedExtension
src/McpContext.ts:589
↓ 6 callers
Method
validatePath
(filePath?: string)
src/McpContext.ts:216
↓ 5 callers
Method
from
( request: HTTPRequest, options: NetworkFormatterOptions, )
src/formatters/NetworkFormatter.ts:64
↓ 5 callers
Method
getData
(includePreservedData?: boolean)
src/PageCollector.ts:103
↓ 5 callers
Function
getPidFilePath
(sessionId: string)
src/daemon/utils.ts:72
↓ 5 callers
Function
isDaemonRunning
(sessionId: string)
src/daemon/utils.ts:96
↓ 5 callers
Method
platform
()
src/devtools/McpHostBindingAdapter.ts:243
↓ 5 callers
Method
selectPage
(newPage: McpPage)
src/McpContext.ts:398
↓ 5 callers
Method
setPage
(page: McpPage)
src/McpResponse.ts:282
↓ 5 callers
Method
toJSONDetailed
()
src/formatters/IssueFormatter.ts:65
↓ 5 callers
Method
toStringDetailed
()
src/formatters/IssueFormatter.ts:52
↓ 5 callers
Method
uninstallExtension
(id: string)
src/McpContext.ts:623
↓ 4 callers
Method
addRoute
( path: string, handler: (req: IncomingMessage, res: ServerResponse) => void, )
tests/server.ts:62
↓ 4 callers
Function
assertDaemonIsNotRunning
(sessionId?: string)
tests/utils.ts:400
↓ 4 callers
Function
assertNoServiceWorkerReported
(targets: Target[], id: string)
tests/utils.ts:32
↓ 4 callers
Method
createExtensionServiceWorkersSnapshot
* Creates a snapshot of the extension service workers.
src/McpContext.ts:416
↓ 4 callers
Method
createPagesSnapshot
()
src/McpContext.ts:490
↓ 4 callers
Function
createTools
(args: ParsedArguments)
src/tools/tools.ts:27
↓ 4 callers
Function
defineTool
( definition: ToolDefinition<Schema> | ((args?: Args) => ToolDefinition<Schema>), )
src/tools/ToolDefinition.ts:339
↓ 4 callers
Method
dispose
()
src/McpContext.ts:137
↓ 4 callers
Method
ensureExtension
( filePath: string, extension: Extension, )
src/McpContext.ts:286
↓ 4 callers
Method
getDialog
()
src/McpPage.ts:154
↓ 4 callers
Function
getMockRequest
( options: { url?: string; method?: string; response?: HTTPResponse; failure?: HTTPRequest['
tests/utils.ts:154
↓ 4 callers
Method
includeSnapshot
(params?: SnapshotParams)
src/tools/ToolDefinition.ts:153
↓ 4 callers
Function
loadTraceAsBuffer
(filePath: string)
tests/trace-processing/fixtures/load.ts:17
↓ 4 callers
Function
parseRawTraceBuffer
( buffer: Uint8Array<ArrayBufferLike> | undefined, metadata?: { cpuThrottling?: number; networkThr
src/trace-processing/parse.ts:27
↓ 4 callers
Method
setListWebMcpTools
()
src/tools/ToolDefinition.ts:172
↓ 4 callers
Method
stop
()
tests/server.ts:96
↓ 4 callers
Method
triggerExtensionAction
(id: string)
src/McpContext.ts:627
↓ 4 callers
Method
waitForEventsAfterAction
( action: () => Promise<unknown>, options?: { timeout?: number; handleDialog?: Dia
src/McpPage.ts:260
↓ 3 callers
Method
#createMcpPage
(page: Page)
src/McpContext.ts:474
↓ 3 callers
Method
#getTitle
()
src/formatters/IssueFormatter.ts:155
↓ 3 callers
Function
assertDaemonIsRunning
(sessionId?: string)
tests/utils.ts:408
↓ 3 callers
Method
attachNetworkRequest
( reqId: number, options?: {requestFilePath?: string; responseFilePath?: string}, )
src/tools/ToolDefinition.ts:155
↓ 3 callers
Function
buildFlag
(category: ToolCategory)
src/ToolHandler.ts:23
↓ 3 callers
Function
checkForUpdates
(message: string)
src/utils/check-for-updates.ts:27
↓ 3 callers
Function
cleanup
()
src/daemon/daemon.ts:265
↓ 3 callers
Method
clearDialog
()
src/McpPage.ts:158
↓ 3 callers
Function
createIdGenerator
()
src/utils/id.ts:7
↓ 3 callers
Method
enqueueEvent
(event: ChromeDevToolsMcpExtension)
src/telemetry/watchdog/ClearcutSender.ts:67
↓ 3 callers
Function
extractExtensionId
(response: McpResponse)
tests/utils.ts:58
↓ 3 callers
Method
getAXNodeByUid
(uid: string)
src/McpPage.ts:502
↓ 3 callers
Method
getById
(stableId: number)
src/PageCollector.ts:121
↓ 3 callers
Method
getExtensionServiceWorkers
()
src/McpContext.ts:565
↓ 3 callers
Method
initialize
(options: ClearcutLoggerOptions)
src/telemetry/ClearcutLogger.ts:58
↓ 3 callers
Method
installExtension
(extensionPath: string)
src/McpContext.ts:618
↓ 3 callers
Method
isPageSelected
(page: McpPage)
src/McpContext.ts:394
↓ 3 callers
Method
logServerError
(args: { toolName?: string; errorCode: ErrorCode; })
src/telemetry/ClearcutLogger.ts:183
↓ 3 callers
Method
recordedTraces
()
src/McpContext.ts:614
↓ 3 callers
Method
saveTemporaryFile
( data: Uint8Array<ArrayBufferLike>, filename: string, )
src/McpContext.ts:575
↓ 3 callers
Function
sendCommand
( command: DaemonMessage, sessionId: string, timeout = SEND_COMMAND_TIMEOUT, )
src/daemon/client.ts:141
↓ 3 callers
Method
setIncludeNetworkRequests
( value: boolean, options?: PaginationOptions & { resourceTypes?: string[]; includePreserv
src/tools/ToolDefinition.ts:137
↓ 3 callers
Method
setIsRunningPerformanceTrace
(x: boolean)
src/McpContext.ts:336
↓ 3 callers
Method
setListThirdPartyDeveloperTools
()
src/tools/ToolDefinition.ts:171
↓ 3 callers
Method
setRoots
(roots: Root[] | undefined)
src/McpContext.ts:212
↓ 3 callers
Function
stabilizeResponseOutput
(text: unknown)
tests/utils.ts:277
↓ 3 callers
Function
stabilizeStructuredContent
(content: unknown)
tests/utils.ts:256
↓ 3 callers
Method
start
()
tests/server.ts:90
↓ 3 callers
Method
storeTraceRecording
(result: TraceResult)
src/McpContext.ts:608
↓ 3 callers
Method
timeout
(time: number)
src/WaitForHelper.ts:123
↓ 3 callers
Function
traceResultIsSuccess
( x: TraceResult | TraceParseError, )
src/trace-processing/parse.ts:17
↓ 3 callers
Function
transformArgName
(zodType: ZodType, name: string)
src/telemetry/transformation.ts:86
↓ 3 callers
Function
withBrowser
( cb: (browser: Browser, page: Page) => Promise<void>, options: { debug?: boolean; autoOpenDevTool
tests/utils.ts:70
↓ 3 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:17
↓ 2 callers
Method
#getAttributesMap
( node: TextSnapshotNode, excludeSpecial = false, )
src/formatters/SnapshotFormatter.ts:107
↓ 2 callers
Method
#getCachedSnapshot
(filePath: string)
src/HeapSnapshotManager.ts:264
next →
1–100 of 707, ranked by callers