Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChromeDevTools/chrome-devtools-mcp
/ functions
Functions
1,492 in github.com/ChromeDevTools/chrome-devtools-mcp
⨍
Functions
1,492
◇
Types & classes
328
↓ 5 callers
Method
applyDefaults
* Step 5: fills in defaults for everything that was not set explicitly. * `viaCli` is an explicit input like any other; it selects which defaults
src/config/ServerConfig.ts:168
↓ 5 callers
Method
assertTextIncludes
* Asserts that the model's response contains every given substring, * ignoring case.
scripts/eval_result.ts:107
↓ 5 callers
Method
callTool
( name: string, args: Record<string, unknown> = {}, )
src/index.ts:162
↓ 5 callers
Method
connect
(transport: Transport)
src/index.ts:155
↓ 5 callers
Function
createConnectedMcpContext
( browser: Browser, options: Omit<McpContextOptions, 'getBrowser' | 'taskRunner'> & { taskRunner?: Tas
tests/utils.ts:216
↓ 5 callers
Function
createMockCSSProperty
( name: string, value: string, options: MockCSSPropertyOptions = {}, )
tests/mocks.ts:678
↓ 5 callers
Method
ensureBrowser
* Returns the browser, establishing the connection if needed. If the browser * changed since the last call (e.g. after a reconnect), all * brows
src/McpContext.ts:356
↓ 5 callers
Method
getDevToolsData
()
src/McpPage.ts:1384
↓ 5 callers
Method
getIdForResource
(resource: WithSymbolId<T>)
src/collectors/PageCollector.ts:238
↓ 5 callers
Method
listNetworkMocks
(filter?: NetworkMockFilter)
src/McpPage.ts:982
↓ 5 callers
Function
parseRawTraceBuffer
( buffer: Uint8Array<ArrayBufferLike> | undefined, metadata?: { cpuThrottling?: number; networkThr
src/processors/PerformanceTrace.ts:53
↓ 5 callers
Method
request
(method: string, params: Record<string, unknown>)
tests/e2e/telemetry.test.ts:187
↓ 5 callers
Method
resolveCdpElementId
(cdpBackendNodeId: number)
src/TextSnapshot.ts:175
↓ 5 callers
Function
saveLogsToFile
(fileName: string)
src/utils/logger.ts:18
↓ 5 callers
Function
sendCommand
( command: DaemonMessage, sessionId: string, timeout: number = getCommandResponseTimeout(command), )
src/daemon/client.ts:178
↓ 5 callers
Method
setError
(error: Error)
src/McpResponse.ts:308
↓ 5 callers
Method
setIncludePages
(value: boolean)
src/tools/ToolDefinition.ts:289
↓ 5 callers
Method
setRoots
(roots: Root[] | undefined)
src/McpContext.ts:485
↓ 5 callers
Method
triggerExtensionAction
(id: string)
src/McpContext.ts:1137
↓ 5 callers
Function
truncateText
( text: string, maxLength: number, { ellipsis = '...', includeEllipsisInLength = false, }: {el
src/utils/text.ts:39
↓ 5 callers
Method
uninstallExtension
(id: string)
src/McpContext.ts:1125
↓ 5 callers
Method
waitForEventsAfterAction
( action: (signal: AbortSignal) => Promise<unknown>, options?: { timeout?: number; waitFor
src/utils/WaitForHelper.ts:125
↓ 5 callers
Function
zodTransform
( transform: (arg: Input) => Output, )
src/tools/ToolDefinition.ts:725
↓ 4 callers
Method
#addMcpClient
( payload: ChromeDevToolsMcpExtension, )
src/telemetry/ClearcutLogger.ts:183
↓ 4 callers
Method
#disposeMcpPage
(mcpPage: McpPage)
src/McpContext.ts:783
↓ 4 callers
Method
#getServiceWorkerExtensionId
(serviceWorkerId: string)
src/McpContext.ts:857
↓ 4 callers
Function
assertNoServiceWorkerReported
( targets: Target[], id: string, )
tests/utils.ts:55
↓ 4 callers
Method
bringToFront
()
src/devtools/McpHostBindingAdapter.ts:58
↓ 4 callers
Function
cleanup
(exitCode = 0)
src/daemon/daemon.ts:275
↓ 4 callers
Function
computeFlagUsage
( args: Record<string, unknown>, options: CliOptions, )
src/telemetry/flagUtils.ts:39
↓ 4 callers
Method
create
* Step 3–5: merges CLI and config-file layers (`CLI > config file`), * validates conflicts and implications, and applies defaults.
src/config/ServerConfig.ts:239
↓ 4 callers
Function
createIdGenerator
()
src/utils/id.ts:7
↓ 4 callers
Function
createMockDialog
( options: { type?: Protocol.Page.DialogType; message?: string; handled?: boolean; } = {}, )
tests/mocks.ts:463
↓ 4 callers
Function
createTestServer
( extraArgs: string[] = [], {mockContext = true}: {mockContext?: boolean} = {}, )
tests/McpServer.test.ts:56
↓ 4 callers
Method
createWorkersSnapshot
* Creates a snapshot of the tracked workers. Today this is limited to * extension service workers; the McpWorker abstraction lets dedicated and
src/McpContext.ts:830
↓ 4 callers
Function
defineBrowserlessTool
( definition: ( args: ParsedArguments, ) => Omit<BrowserlessToolDefinition<Schema>, 'browserless' | 'c
src/tools/ToolDefinition.ts:686
↓ 4 callers
Function
defineTool
( definition: ToolFactory<Schema>, )
src/tools/ToolDefinition.ts:609
↓ 4 callers
Method
ensureExtension
( filePath: string, extension: Extension, )
src/McpContext.ts:582
↓ 4 callers
Function
escapeForLog
(value: string)
src/utils/logger.ts:63
↓ 4 callers
Function
evaluate
( fn: string, response: McpResponse, context: McpContext, args: ParsedArguments, )
tests/network_blocking.test.ts:84
↓ 4 callers
Function
formatName
(name: string)
src/formatters/RemoteObjectFormatter.ts:75
↓ 4 callers
Function
formatPropertyValue
( type: string, subtype: string | undefined, description = '', )
src/formatters/RemoteObjectFormatter.ts:91
↓ 4 callers
Method
getAXNodeByUid
(uid: string)
src/McpPage.ts:1264
↓ 4 callers
Function
getDaemonPid
(sessionId: string)
src/daemon/utils.ts:80
↓ 4 callers
Method
getDevToolsPage
()
src/McpPage.ts:815
↓ 4 callers
Function
getExecutablePath
()
tests/utils.ts:491
↓ 4 callers
Method
getPages
()
src/McpContext.ts:674
↓ 4 callers
Method
getScreenRecorder
()
src/McpPage.ts:613
↓ 4 callers
Function
getTempFilePath
(filename: string)
src/utils/files.ts:12
↓ 4 callers
Method
includeConsoleErrorsFrom
* Lists the console errors and uncaught exceptions that the page raises from * now until the response is handled.
src/tools/ToolDefinition.ts:312
↓ 4 callers
Method
includeSnapshot
(params?: SnapshotParams)
src/tools/ToolDefinition.ts:317
↓ 4 callers
Method
initialize
(options: ClearcutLoggerOptions)
src/telemetry/ClearcutLogger.ts:106
↓ 4 callers
Function
isAllowedUrl
( url: string, options: IsAllowedUrlOptions, )
src/utils/url.ts:160
↓ 4 callers
Method
loadState
()
src/telemetry/persistence.ts:59
↓ 4 callers
Function
parseByteSizeRange
(value: string)
src/utils/bytes.ts:81
↓ 4 callers
Method
pause
* Stops new tasks on every queue. The pause goes ahead of waiting tasks and * resolves when every running task has finished. Disposing the guard
src/utils/TaskRunner.ts:110
↓ 4 callers
Method
randomPort
()
tests/server.ts:20
↓ 4 callers
Method
remove
(filter: NetworkMockFilter)
src/NetworkOverrideManager.ts:279
↓ 4 callers
Method
resetForTesting
()
src/telemetry/ClearcutLogger.ts:118
↓ 4 callers
Function
runGnGen
(gnArgs: string[] = [])
scripts/gn-gen.ts:26
↓ 4 callers
Method
selectPage
(newPage: McpPage)
src/McpContext.ts:795
↓ 4 callers
Method
setScreenRecorder
(data: ScreenRecorderData | null)
src/McpPage.ts:617
↓ 4 callers
Function
settle
()
tests/utils.ts:93
↓ 4 callers
Function
shieldLiteralArgs
( argv: readonly string[], getSpec: (commandName: string) => CommandArgSpec | undefined, )
src/config/cli-commands.ts:211
↓ 4 callers
Function
stabilizeResponseOutput
(text: unknown)
tests/utils.ts:434
↓ 4 callers
Function
stabilizeStructuredContent
(content: unknown)
tests/utils.ts:406
↓ 4 callers
Function
startCli
( sessionId: string, args: string[] = [], options?: {cwd?: string}, )
tests/utils.ts:543
↓ 4 callers
Function
stopDaemon
(sessionId: string)
src/daemon/client.ts:222
↓ 4 callers
Function
stubEventEmitter
* Wires a Sinon-stubbed Puppeteer EventEmitter subclass to a real Puppeteer * `EventEmitter` instance (`sinon.createStubInstance` skips constructors,
tests/mocks.ts:175
↓ 4 callers
Method
throwIfDialogOpen
()
src/McpPage.ts:629
↓ 4 callers
Function
traceResultIsSuccess
( x: TraceResult | TraceParseError, )
src/processors/PerformanceTrace.ts:27
↓ 4 callers
Method
updateTimeouts
()
src/McpPage.ts:1610
↓ 4 callers
Function
validateUrl
(url: string, options: ValidateUrlOptions)
src/utils/url.ts:326
↓ 4 callers
Method
watchConfig
* Watches the config file and applies its changes to the running server.
src/index.ts:234
↓ 4 callers
Function
withTimeout
( promise: Promise<T>, message: string, timeoutMs = 10000, )
tests/e2e/telemetry.test.ts:172
↓ 4 callers
Method
worker
* Resolves the worker's execution context, or `undefined` when the target * does not expose one (e.g. it closed before the session attached).
src/McpWorker.ts:86
↓ 4 callers
Method
writeLine
(text: string)
src/formatters/CssFormatter.ts:229
↓ 3 callers
Method
#combinedRoots
()
src/index.ts:334
↓ 3 callers
Method
#createMcpPage
(target: Target)
src/McpContext.ts:921
↓ 3 callers
Method
#deactivate
()
src/NetworkOverrideManager.ts:360
↓ 3 callers
Method
#getText
()
src/formatters/ConsoleFormatter.ts:247
↓ 3 callers
Method
#getTitle
()
src/formatters/IssueFormatter.ts:212
↓ 3 callers
Method
#getWatchdog
()
src/telemetry/ClearcutLogger.ts:202
↓ 3 callers
Method
#isPageTarget
(target: Target)
src/McpContext.ts:1004
↓ 3 callers
Method
#runLifecycleOperation
( operation: () => Promise<Result>, )
src/NetworkOverrideManager.ts:329
↓ 3 callers
Method
_getTargetInfo
()
tests/mocks.ts:388
↓ 3 callers
Function
assertDaemonIsRunning
(sessionId?: string)
tests/utils.ts:584
↓ 3 callers
Method
attach
* Attaches to the DevTools page if it exposes the CD4A bridge. * * Returns false if the bridge does not exist, e.g., because the connected *
src/devtools/DevToolsCommentBridge.ts:45
↓ 3 callers
Method
attachNetworkRequest
( reqId: number, options?: { requestFilePath?: string; responseFilePath?: string; se
src/tools/ToolDefinition.ts:319
↓ 3 callers
Method
attachWaitForResult
(result: WaitForEventsResult)
src/tools/ToolDefinition.ts:347
↓ 3 callers
Method
browserContext
()
tests/mocks.ts:382
↓ 3 callers
Function
bucketizeDaysSince
(days: number)
src/telemetry/transformation.ts:26
↓ 3 callers
Function
buildCommand
( commandName: string, args: Record<string, ArgDef>, )
src/config/cli-commands.ts:22
↓ 3 callers
Method
cancel
(queue: TaskQueue, reason: Error)
src/utils/TaskRunner.ts:20
↓ 3 callers
Function
checkForUpdates
(message: string)
src/utils/check-for-updates.ts:27
↓ 3 callers
Method
clearDialog
()
src/McpPage.ts:609
↓ 3 callers
Method
connect
(url: string)
scripts/profile/inspector.ts:41
↓ 3 callers
Function
createCliSession
(t: TestContext)
tests/utils.ts:576
↓ 3 callers
Function
createMockCSSMatchedStyles
( params: MockCSSMatchedStylesParams = {}, )
tests/mocks.ts:1064
↓ 3 callers
Function
createMockCSSStyleRule
( selector: string, options: MockRuleOptions = {}, )
tests/mocks.ts:836
← previous
next →
101–200 of 1,492, ranked by callers