Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChromeDevTools/chrome-devtools-mcp
/ functions
Functions
1,397 in github.com/ChromeDevTools/chrome-devtools-mcp
⨍
Functions
1,397
◇
Types & classes
306
↓ 1 callers
Function
notify
(child: Server, msg: {method: string; params?: unknown})
tests/shutdown.test.ts:126
↓ 1 callers
Function
number
(value: string)
tests/formatters/RemoteObjectFormatter.test.ts:39
↓ 1 callers
Function
onAbort
()
src/utils/raceWithSignal.ts:12
↓ 1 callers
Function
onParentDeath
(reason: string)
src/telemetry/watchdog/main.ts:125
↓ 1 callers
Function
optionName
(token: string)
src/config/cli-commands.ts:97
↓ 1 callers
Function
parseConfig
(argv: string[], env: NodeJS.ProcessEnv = {})
tests/cli.test.ts:33
↓ 1 callers
Function
parseConfig
(argv: string[] = [])
tests/McpServer.test.ts:52
↓ 1 callers
Function
parseConfig
(argv: string[] = [], env: NodeJS.ProcessEnv = {})
tests/config/ServerConfig.test.ts:23
↓ 1 callers
Function
parseDefaultArgs
(options: McpOptions)
src/config/ServerConfig.ts:69
↓ 1 callers
Function
parseEventsArray
* Scans trace events from a JSON array in bounded batches to limit memory consumption. * * @param buffer The raw byte buffer containing the events a
src/processors/ChunkedTraceParser.ts:203
↓ 1 callers
Function
parseKey
(keyInput: string)
src/utils/keyboard.ts:289
↓ 1 callers
Function
parseLogpoint
(text: string)
src/LogpointManager.ts:96
↓ 1 callers
Function
parseNonNegativeInteger
( value: string | undefined, name: string, )
scripts/profile/utils.ts:17
↓ 1 callers
Function
parseReadmeChromium
(directory: string)
scripts/generate-third-party-notices.ts:162
↓ 1 callers
Function
parseTrace
(fileName: string)
tests/tools/performance.test.ts:327
↓ 1 callers
Function
parseWatchdogArgs
()
src/telemetry/watchdog/main.ts:29
↓ 1 callers
Function
parseWebDevTrace
* Parses the web.dev trace fixture one time for this file. A parse takes * about 0.8 s of CPU time, and the tests only read the result.
tests/McpResponse.test.ts:83
↓ 1 callers
Function
performEvaluation
( evaluatable: Evaluatable, source: string, format: 'function' | 'script', args: Array<JSHandle<unknow
src/tools/script.ts:251
↓ 1 callers
Function
pngHeight
* Reads the pixel height from a PNG buffer's IHDR chunk (bytes 20..23).
tests/tools/screenshot.test.ts:35
↓ 1 callers
Function
pngWidth
* Reads the pixel width from a PNG buffer's IHDR chunk (bytes 16..19).
tests/tools/screenshot.test.ts:28
↓ 1 callers
Function
populateCruxData
We tell CrUXManager to fetch data so it's available when DevTools.PerformanceTraceFormatter is invoked
src/tools/performance.ts:307
↓ 1 callers
Function
prependToPath
(env: NodeJS.ProcessEnv, dir: string)
scripts/gclient-sync.ts:65
↓ 1 callers
Function
preview
( subtype: Protocol.Runtime.ObjectPreview['subtype'], description: string, properties: Protocol.Runtime.
tests/formatters/RemoteObjectFormatter.test.ts:13
↓ 1 callers
Function
profileScenario
( scenarioEntry: ScenarioEntry, scenarioArgs: ScenarioArgs, options: ProfileOptions, rootDir: string,
scripts/profile/profile_mcp.ts:97
↓ 1 callers
Function
puppeteerLogger
(prefix: string)
src/utils/logger.ts:144
↓ 1 callers
Method
queryHeapSnapshotObjects
( filePath: string, options: HeapQueryOptions, )
src/McpContext.ts:1128
↓ 1 callers
Function
readBundledFiles
Returns the files of all bundles as paths relative to the project root.
scripts/generate-third-party-notices.ts:98
↓ 1 callers
Function
readContent
* Returns undefined if the file cannot be read, for example while it is being * replaced.
src/config/ConfigWatcher.ts:20
↓ 1 callers
Function
readDevToolsThirdPartyNotice
(directory: string)
scripts/generate-third-party-notices.ts:182
↓ 1 callers
Function
readPackageNotice
(packageDir: string)
scripts/generate-third-party-notices.ts:137
↓ 1 callers
Function
readTextareaValue
(index: number)
tests/e2e/chrome-devtools-hyphen-positionals.test.ts:74
↓ 1 callers
Function
readViewport
()
tests/tools/lighthouse.test.ts:39
↓ 1 callers
Function
record
( label: string, takeSnapshot: boolean, )
scripts/profile/profile_mcp.ts:154
↓ 1 callers
Method
register
()
tests/tools/webauthn.test.ts:25
↓ 1 callers
Function
removeConflictingGlobalDeclaration
* Removes the conflicting global HTMLElementEventMap declaration from * @paulirish/trace_engine/models/trace/ModelImpl.d.ts to avoid TS2717 error *
scripts/prepare.ts:19
↓ 1 callers
Method
resetIdsForTesting
* Resets the shared id counter. For tests only, mirroring * McpContext.resetPageIdsForTesting().
src/McpWorker.ts:70
↓ 1 callers
Method
resetPageIdsForTesting
()
src/McpContext.ts:463
↓ 1 callers
Function
resetUpdateCheckFlagForTesting
()
src/utils/check-for-updates.ts:23
↓ 1 callers
Method
resetWorkerIdsForTesting
()
src/McpContext.ts:467
↓ 1 callers
Method
resolveClassKeyFromId
(id: number)
src/processors/HeapSnapshotManager.ts:119
↓ 1 callers
Function
resolveContainerQueries
( matchedStyles: MatchedStyles, resolveUid?: UidResolver, )
src/formatters/CssFormatter.ts:1192
↓ 1 callers
Method
resolveIdFromClassKey
(classKey: string)
src/processors/HeapSnapshotManager.ts:115
↓ 1 callers
Function
resolvePageIndex
( pageIdx: number | undefined, totalPages: number, )
src/utils/pagination.ts:68
↓ 1 callers
Method
resolveReqidToCdpRequestId
(reqid: number)
src/McpPage.ts:777
↓ 1 callers
Function
resolveScriptSource
( inlineSource: string | undefined, sourcePath: string | undefined, context: Context, )
src/tools/script.ts:222
↓ 1 callers
Method
resolveUidToBackendNodeId
( uid: string, )
src/McpPage.ts:1273
↓ 1 callers
Function
restore
(value: unknown)
src/config/cli-commands.ts:209
↓ 1 callers
Function
rpc
( child: Server, msg: {method: string; params?: unknown}, )
tests/shutdown.test.ts:75
↓ 1 callers
Function
run
(queue: TaskQueue, name: string, ms: number)
tests/utils/TaskRunner.test.ts:211
↓ 1 callers
Function
runDepotTool
(tool: string, args: string[], options: RunOptions)
scripts/gclient-sync.ts:94
↓ 1 callers
Function
runIteration
()
scripts/profile/profile_mcp.ts:136
↓ 1 callers
Function
runOn
Runs `fn` as a task on `queue`.
tests/ToolHandler.test.ts:54
↓ 1 callers
Function
runSingleScenario
( scenarioPath: string, apiKey: string, server: TestServer, modelId: string, debug: boolean, inclu
scripts/eval_gemini.ts:40
↓ 1 callers
Function
runTelemetryTest
( killFn: (ctx: TestContext) => void, spawnOptions?: SpawnOptions, )
tests/e2e/telemetry.test.ts:164
↓ 1 callers
Function
runTests
(attempt)
scripts/test.js:116
↓ 1 callers
Function
runWithRetry
(fn: () => Promise<void>)
tests/browser.test.ts:38
↓ 1 callers
Function
safeClose
(browser: Browser)
tests/browser.test.ts:25
↓ 1 callers
Function
schemaToCLIOptions
(toolName: string, schema: JsonSchema)
scripts/generate-cli.ts:55
↓ 1 callers
Function
scriptFor
(index: number)
scripts/profile/source_map_server.ts:30
↓ 1 callers
Function
selectNativeSelectOption
( handle: ElementHandle<Element>, signal: AbortSignal, )
src/tools/input.ts:81
↓ 1 callers
Function
selectOption
( handle: ElementHandle, aXNode: TextSnapshotNode, value: string, signal: AbortSignal, )
src/tools/input.ts:264
↓ 1 callers
Function
selectedPageIdFromToolResult
(result: unknown)
scripts/profile/utils.ts:31
↓ 1 callers
Function
selfCausedError
()
tests/devtools/DevtoolsUtils.test.ts:406
↓ 1 callers
Method
setIncludeExtensionServiceWorkers
(value: boolean)
src/McpResponse.ts:200
↓ 1 callers
Method
setTabId
(tabId: string)
src/tools/ToolDefinition.ts:324
↓ 1 callers
Function
setUpHangingInit
()
tests/McpContext.test.ts:942
↓ 1 callers
Method
setUpNetworkCollectorForTesting
* We need to ignore favicon request as they make our test flaky
src/McpPage.ts:1696
↓ 1 callers
Function
setupBlockedPageFixture
* Serves `/allowed.html` and `/blocked.html` and records the request paths * the server actually received, so a test can tell "blocked" apart from *
tests/network_blocking.test.ts:71
↓ 1 callers
Function
setupBundleRoutes
()
tests/LogpointManager.test.ts:352
↓ 1 callers
Function
setupMCPServer
()
src/daemon/daemon.ts:141
↓ 1 callers
Function
setupPwaRoutes
()
tests/tools/pwa.test.ts:59
↓ 1 callers
Function
setupRoutes
()
tests/LogpointManager.test.ts:345
↓ 1 callers
Function
setupServerWithRetry
()
tests/shutdown.test.ts:153
↓ 1 callers
Function
setupServiceWorkerFixture
* Serves a service worker that forwards `/blocked/*` requests from controlled * pages and fetches `/blocked/swdata.json` on its own during `install`.
tests/network_blocking.test.ts:27
↓ 1 callers
Function
setupThirdPartyDeveloperTools
( response: McpResponse, context: McpContext, args: ParsedArguments, evaluateFn: () =>
tests/tools/thirdPartyDeveloper.test.ts:300
↓ 1 callers
Function
setupWebMcpTool
(page: McpPage)
tests/tools/webmcp.test.ts:56
↓ 1 callers
Function
shield
(token: string)
src/config/cli-commands.ts:143
↓ 1 callers
Function
shield
(argv: string[])
tests/cli.test.ts:1426
↓ 1 callers
Function
shiftBundle
( bundle: {js: string; map: string}, extraLines: number, )
tests/LogpointManager.test.ts:67
↓ 1 callers
Function
shouldLogDailyActive
(state: LocalState)
src/telemetry/ClearcutLogger.ts:57
↓ 1 callers
Function
shouldValidateFile
( option: FileVerificationOption | undefined, isLocal: boolean, )
src/ToolHandler.ts:147
↓ 1 callers
Function
shutdown
(reason: string)
src/bin/chrome-devtools-mcp-main.ts:52
↓ 1 callers
Method
signIn
()
tests/tools/webauthn.test.ts:26
↓ 1 callers
Function
skipValue
* Scans past a complete JSON value starting at the specified buffer position. * Skips strings, compound objects, arrays, and primitive values without
src/processors/ChunkedTraceParser.ts:129
↓ 1 callers
Function
sourceMapFor
(index: number, sizeBytes = 1_000_000)
scripts/profile/source_map_server.ts:14
↓ 1 callers
Function
spawnServer
()
tests/shutdown.test.ts:25
↓ 1 callers
Method
splitAfterNavigation
()
src/collectors/PageCollector.ts:173
↓ 1 callers
Function
stabilize
(c: unknown)
tests/utils.ts:380
↓ 1 callers
Function
start
( args: string[], sessionId: string, stopExisting = false, )
src/bin/chrome-devtools.ts:50
↓ 1 callers
Function
start
Acquires `queue` and holds it until `finish()` is called.
tests/utils/TaskRunner.test.ts:27
↓ 1 callers
Function
startMockServer
()
tests/e2e/telemetry.test.ts:31
↓ 1 callers
Function
startSocketServer
()
src/daemon/daemon.ts:224
↓ 1 callers
Function
startSourceMapTestServer
( scriptCount = 100, )
scripts/profile/source_map_server.ts:43
↓ 1 callers
Function
startWatcher
( watchedPath: string, onChange: (content: string) => Promise<void> = sinon.stub().resolves(), )
tests/config/ConfigWatcher.test.ts:69
↓ 1 callers
Method
stopForTesting
()
src/telemetry/watchdog/ClearcutSender.ts:246
↓ 1 callers
Function
stopTracingAndAppendOutput
( page: ContextPage, response: Response, context: Context, filePath?: string, )
src/tools/performance.ts:255
↓ 1 callers
Function
stripWhitespace
(text: string)
src/formatters/SnapshotFormatter.ts:209
↓ 1 callers
Function
stubMissingPaths
(...missingPaths: string[])
tests/roots.test.ts:164
↓ 1 callers
Method
subscribe
()
src/collectors/ServiceWorkerCollector.ts:39
↓ 1 callers
Method
subscribe
()
src/collectors/PageCollector.ts:284
← previous
next →
901–1,000 of 1,397, ranked by callers