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
↓ 3 callers
Function
fetchWithValidatedRedirects
( url: URL, options: { policy: UrlAccessPolicy; method?: 'GET' | 'HEAD'; headers?: Record<stri
src/utils/network.ts:70
↓ 3 callers
Method
format
( context: McpContext, data: { detailedConsoleMessage: ConsoleFormatter | IssueFormatter | undef
src/McpResponse.ts:866
↓ 3 callers
Function
formatStackTrace
( stackTrace: DevTools.DevTools.StackTrace.StackTrace.StackTrace, cause: SymbolizedError | undefined, fo
src/formatters/ConsoleFormatter.ts:416
↓ 3 callers
Method
getAggregates
( filePath: string, filterName?: string, objectId?: number, )
src/processors/HeapSnapshotManager.ts:205
↓ 3 callers
Function
getCSSStyleRuleMetadata
* Extracts common metadata (`ancestors`, `matchingSelectors`, `source`) * uniformly across matched rules, inherited rules, and pseudo-element rules.
src/formatters/CssFormatter.ts:439
↓ 3 callers
Method
getClassDiffs
( baseFilePath: string, currentFilePath: string, )
src/processors/HeapSnapshotManager.ts:384
↓ 3 callers
Method
getConsoleData
( includePreservedMessages?: boolean, )
src/McpPage.ts:846
↓ 3 callers
Method
getDetailedClassDiff
( baseFilePath: string, currentFilePath: string, classIndex: number, )
src/processors/HeapSnapshotManager.ts:413
↓ 3 callers
Method
getMatchedStylesForUid
(uid: string)
src/McpPage.ts:1296
↓ 3 callers
Function
getMockAggregatedIssue
()
tests/utils.ts:441
↓ 3 callers
Method
getNodesById
( filePath: string, id: number, filterName?: string, objectId?: number, )
src/processors/HeapSnapshotManager.ts:277
↓ 3 callers
Method
getRestartRequiredChanges
* Returns the restart-required options whose resolved values differ between * this config and `next`.
src/config/ServerConfig.ts:320
↓ 3 callers
Function
getRuntimeHome
(sessionId: string)
src/daemon/utils.ts:50
↓ 3 callers
Function
getSocketPath
(sessionId: string)
src/daemon/utils.ts:34
↓ 3 callers
Method
getWebMcpTools
()
src/McpPage.ts:755
↓ 3 callers
Method
hasSnapshots
()
src/processors/HeapSnapshotManager.ts:544
↓ 3 callers
Method
indent
()
src/formatters/CssFormatter.ts:213
↓ 3 callers
Method
init
(workers: McpWorker[])
src/collectors/ServiceWorkerCollector.ts:89
↓ 3 callers
Method
installExtension
(extensionPath: string)
src/McpContext.ts:1069
↓ 3 callers
Function
isLocalhost
(url?: string)
src/utils/url.ts:21
↓ 3 callers
Function
isMcpOptionKey
(key: string)
src/config/ServerConfig.ts:23
↓ 3 callers
Method
isPageSelected
(page: McpPage)
src/McpContext.ts:778
↓ 3 callers
Method
isRunningPerformanceTrace
()
src/McpPage.ts:619
↓ 3 callers
Method
isValid
()
src/formatters/IssueFormatter.ts:156
↓ 3 callers
Method
loadResource
(path: string)
src/McpContext.ts:1235
↓ 3 callers
Method
logDailyActiveIfNeeded
()
src/telemetry/ClearcutLogger.ts:236
↓ 3 callers
Method
logServerError
(args: { errorCode: ErrorCode; toolName?: string; })
src/telemetry/ClearcutLogger.ts:260
↓ 3 callers
Method
logServerStart
(flagUsage: FlagUsage)
src/telemetry/ClearcutLogger.ts:225
↓ 3 callers
Method
makeTargetFilter
(enableExtensions = false)
src/BrowserManager.ts:57
↓ 3 callers
Method
mergeReloadable
* Produces a new {@link ServerConfig} that takes reloadable options from * `next` and keeps restart-required options from this config, preserving
src/config/ServerConfig.ts:301
↓ 3 callers
Method
openDevTools
* Opens the DevTools window and waits until the DevTools frontend creates * its universe, which also creates the CD4A bridge when it is enabled.
src/McpPage.ts:831
↓ 3 callers
Method
pageTaskQueue
* The queue for tasks on page `pageId`. The queue exists before the page * does, so a tool call can enter it before the browser connects. It is a
src/McpContext.ts:761
↓ 3 callers
Method
parseCliArgs
* Step 1: parses the CLI flags without applying defaults, so the result only * contains what the user passed. `--help` and `--version` print and ex
src/config/ConfigParser.ts:79
↓ 3 callers
Method
parseConfigFile
* Step 2: reads the JSON config file and runs it through yargs to reject * unknown keys and apply coercions, without applying defaults.
src/config/ConfigParser.ts:90
↓ 3 callers
Function
readText
(filePath: string)
scripts/generate-third-party-notices.ts:71
↓ 3 callers
Method
recordedTraces
()
src/McpContext.ts:1065
↓ 3 callers
Method
reset
()
tests/server.ts:86
↓ 3 callers
Method
saveState
(state: LocalState)
src/telemetry/persistence.ts:60
↓ 3 callers
Method
saveTemporaryFile
( data: Uint8Array<ArrayBufferLike>, filename: string, )
src/McpContext.ts:1037
↓ 3 callers
Method
setClientName
(clientName: string)
src/telemetry/ClearcutLogger.ts:137
↓ 3 callers
Method
setIncludeNetworkRequests
( value: boolean, options?: PaginationOptions & { resourceTypes?: string[]; includePreserv
src/tools/ToolDefinition.ts:291
↓ 3 callers
Method
setListThirdPartyDeveloperTools
()
src/tools/ToolDefinition.ts:333
↓ 3 callers
Method
setListWebMcpTools
()
src/tools/ToolDefinition.ts:334
↓ 3 callers
Method
setLogpoints
* Makes the given logpoints the complete set of logpoints on the page, see * {@link LogpointManager.setLogpoints}. The manager is created on first
src/McpPage.ts:456
↓ 3 callers
Function
setupUnhandledRejectionHandler
(onCrash: () => void)
src/utils/errorHandling.ts:18
↓ 3 callers
Function
shieldLiteralArgs
( argv: readonly string[], getSpec: (commandName: string) => CommandArgSpec | undefined, )
src/config/cli-commands.ts:134
↓ 3 callers
Function
skipString
* Scans past a JSON string starting at the opening quotation mark. * * @param buffer The trace byte buffer to scan. * @param startQuotePos The buff
src/processors/ChunkedTraceParser.ts:98
↓ 3 callers
Method
start
* Starts watching the config file. Throws if `configPath` does not exist.
src/config/ConfigWatcher.ts:63
↓ 3 callers
Method
start
()
tests/server.ts:90
↓ 3 callers
Function
startDaemon
( mcpArgs: string[] = [], sessionId: string, )
src/daemon/client.ts:113
↓ 3 callers
Function
stripUndefined
(options: T)
tests/mocks.ts:1341
↓ 3 callers
Function
stripYargsPositionalArgs
( parsed: T, )
src/config/mcp-options.ts:459
↓ 3 callers
Function
stubEventEmitter
* Wires a Sinon-stubbed Puppeteer EventEmitter subclass to a real Puppeteer * `EventEmitter` instance (`sinon.createStubInstance` skips constructors,
tests/mocks.ts:177
↓ 3 callers
Function
transformArgName
(zodType: ZodType, name: string)
src/telemetry/transformation.ts:163
↓ 3 callers
Function
truncateUrl
(url: string)
src/utils/text.ts:63
↓ 3 callers
Function
validateNetworkUrl
(url: URL, policy: UrlAccessPolicy)
src/utils/network.ts:55
↓ 3 callers
Function
validateUrl
(url: string, options: ValidateUrlOptions)
src/utils/url.ts:281
↓ 3 callers
Function
validateUrlPatterns
( patterns: string[], flagName: string, )
src/utils/url.ts:195
↓ 3 callers
Function
wait
(ms: number)
tests/config/ConfigWatcher.test.ts:22
↓ 3 callers
Function
waitExecutionFor
( func: () => Promise<void>, timeout: number, )
tests/utils.ts:535
↓ 3 callers
Function
waitFor
( check: () => boolean, timeoutMessage: string, )
src/daemon/client.ts:44
↓ 3 callers
Method
waitForTextOnPage
( text: string[], options: {timeout?: number; visible?: boolean} = {}, )
src/McpPage.ts:1606
↓ 3 callers
Function
withBrowser
( cb: (browser: Browser, page: Page) => Promise<void>, options: { debug?: boolean; autoOpenDevTool
tests/utils.ts:95
↓ 3 callers
Function
withoutDefaults
( options: Record<string, YargsOptions>, )
src/config/mcp-options.ts:444
↓ 2 callers
Method
#activate
()
src/NetworkOverrideManager.ts:305
↓ 2 callers
Method
#applyConfigLocked
(nextConfig: ServerConfig)
src/index.ts:198
↓ 2 callers
Method
#applyNodeFilter
( snapshot: DevTools.HeapSnapshotModel.HeapSnapshotProxy.HeapSnapshotProxy, filter: DevTools.HeapSnaps
src/processors/HeapSnapshotManager.ts:183
↓ 2 callers
Method
#attachFrameNavigatedWithinDocumentListener
()
src/collectors/PageCollector.ts:350
↓ 2 callers
Method
#cancelEntry
(entry: Entry, reason: unknown)
src/utils/TaskRunner.ts:143
↓ 2 callers
Method
#closeBrowser
()
src/BrowserManager.ts:548
↓ 2 callers
Method
#closeLaunchedBrowser
(browser: Browser)
src/BrowserManager.ts:527
↓ 2 callers
Method
#dataFormat
(serverArgs: ParsedArguments)
src/ToolHandler.ts:348
↓ 2 callers
Method
#detachFrameNavigatedWithinDocumentListener
()
src/collectors/PageCollector.ts:163
↓ 2 callers
Method
#detachFrameNavigatedWithinDocumentListener
()
src/collectors/PageCollector.ts:359
↓ 2 callers
Method
#evictIfCurrent
* Handles a `disconnected` event fired by a browser we hold: clears the * cached handle if it's still the current one, so the next ensureBrowser()
src/BrowserManager.ts:519
↓ 2 callers
Method
#fromDetails
( opts: Parameters<typeof SymbolizedError.fromDetails>[0], causeDepth: number, )
src/devtools/DevtoolsUtils.ts:275
↓ 2 callers
Method
#fromError
( opts: Parameters<typeof SymbolizedError.fromError>[0], causeDepth: number, )
src/devtools/DevtoolsUtils.ts:343
↓ 2 callers
Method
#getAttributesMap
( node: TextSnapshotNode, excludeSpecial = false, )
src/formatters/SnapshotFormatter.ts:142
↓ 2 callers
Method
#getMessageFromException
(error: RemoteObjectLike)
src/devtools/DevtoolsUtils.ts:392
↓ 2 callers
Method
#getNetworkOverrideManagerForChanges
()
src/McpPage.ts:954
↓ 2 callers
Method
#getNodeStyleSelector
( style: DevTools.CSSStyleDeclaration.CSSStyleDeclaration, matchedStyles?: MatchedStyles, )
src/formatters/CssFormatter.ts:787
↓ 2 callers
Method
#getParsedDescription
()
src/formatters/IssueFormatter.ts:160
↓ 2 callers
Method
#getSortedRawClassDiffs
( baseFilePath: string, currentFilePath: string, )
src/processors/HeapSnapshotManager.ts:445
↓ 2 callers
Method
#leave
(entry: Entry)
src/utils/TaskRunner.ts:170
↓ 2 callers
Method
#notifyCommentWaiters
(changed: boolean)
src/devtools/DevToolsCommentBridge.ts:145
↓ 2 callers
Method
#pageSourceCodes
The scripts and source-map sources of the page in the workspace.
src/LogpointManager.ts:389
↓ 2 callers
Method
#readResponseBody
(httpResponse: HTTPResponse)
src/formatters/NetworkFormatter.ts:298
↓ 2 callers
Method
#resetBrowserState
()
src/McpContext.ts:402
↓ 2 callers
Method
#resetIssueAggregator
()
src/collectors/PageCollector.ts:269
↓ 2 callers
Method
#resolveConfig
(cliArgs: Partial<ParsedArguments>)
src/config/ConfigParser.ts:184
↓ 2 callers
Method
#schedule
()
src/utils/TaskRunner.ts:179
↓ 2 callers
Method
#scheduleFlush
(delayMs: number)
src/telemetry/watchdog/ClearcutSender.ts:170
↓ 2 callers
Method
#scheduleTask
( queue: TaskQueue, priority: Priority = 'normal', signal?: AbortSignal, )
src/utils/TaskRunner.ts:114
↓ 2 callers
Method
#selectPage
(newPage: McpPage)
src/McpContext.ts:788
↓ 2 callers
Method
#sendBatch
(events: BufferedEvent[])
src/telemetry/watchdog/ClearcutSender.ts:182
↓ 2 callers
Method
#updateRoots
* `timeout` is only passed where a tool call is waiting on the result – the * background refreshes (on initialization and `roots/list_changed`) blo
src/index.ts:360
↓ 2 callers
Method
#updateStatus
(tool: AnyToolDefinition)
src/ToolHandler.ts:275
↓ 2 callers
Method
#writeFile
( filepath: string, data: Uint8Array<ArrayBufferLike>, )
src/McpContext.ts:1008
↓ 2 callers
Method
abandonPendingAttempt
* Signals that whoever was waiting on the in-flight ensureBrowser() call * has given up (e.g. a tool-call timeout). There's no way to cancel a *
src/BrowserManager.ts:219
↓ 2 callers
Method
addLog
(extensionId: string, log: ConsoleMessage | UncaughtError)
src/collectors/ServiceWorkerCollector.ts:163
← previous
next →
201–300 of 1,397, ranked by callers