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
↓ 78 callers
Method
get
()
src/telemetry/ClearcutLogger.ts:114
↓ 74 callers
Method
resolve
(result: unknown)
scripts/profile/inspector.ts:25
↓ 67 callers
Function
logger
(...args: unknown[])
src/utils/logger.ts:149
↓ 49 callers
Method
parse
()
src/config/ConfigParser.ts:160
↓ 46 callers
Method
find
( filter: (item: WithSymbolId<T>) => boolean, )
src/collectors/PageCollector.ts:252
↓ 35 callers
Method
error
()
src/McpResponse.ts:394
↓ 35 callers
Method
from
( config: ServerConfig, options: McpServerOptions, )
src/index.ts:316
↓ 35 callers
Method
toString
()
src/formatters/CssFormatter.ts:1257
↓ 34 callers
Method
close
()
scripts/profile/source_map_server.ts:10
↓ 33 callers
Method
getSelectedMcpPage
()
src/McpContext.ts:696
↓ 31 callers
Method
handler
( request: Request<Schema>, response: Response, context: Context, )
src/tools/ToolDefinition.ts:166
↓ 27 callers
Method
url
()
src/McpPage.ts:299
↓ 24 callers
Function
withMcpContext
( cb: ( response: McpResponse, context: McpContext, args: ParsedArguments, ) => Promise<void>,
tests/utils.ts:236
↓ 23 callers
Method
appendResponseLine
(value: string)
src/tools/ToolDefinition.ts:243
↓ 23 callers
Method
consumePageNavigation
* Consumes initial page navigation/setup boilerplate. * - Ignores/skips leading or trailing list_pages calls. * - Asserts that new_page or navig
scripts/eval_result.ts:42
↓ 23 callers
Function
createHandlerMocks
(options: Partial<ParsedArguments> = {})
tests/mocks.ts:614
↓ 22 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:72
↓ 22 callers
Function
createMockServerConfig
( options: Partial<ParsedArguments> = {}, )
tests/mocks.ts:1415
↓ 22 callers
Method
handle
* Cancellation stops waiting for a result, but running work keeps its queue * until it settles, including response processing, to preserve serializ
src/ToolHandler.ts:515
↓ 21 callers
Function
definePageTool
( definition: (args: ParsedArguments) => PageToolDefinition<Schema>, )
src/tools/ToolDefinition.ts:640
↓ 20 callers
Method
dispose
()
src/McpPage.ts:938
↓ 19 callers
Function
html
( strings: TemplateStringsArray, ...values: unknown[] )
tests/utils.ts:385
↓ 18 callers
Method
addHtmlRoute
(path: string, htmlContent: string)
tests/server.ts:51
↓ 18 callers
Function
createTempDir
( prefix = 'chrome-devtools-test-', baseDir: string = os.tmpdir(), )
tests/utils.ts:609
↓ 18 callers
Method
type
()
tests/mocks.ts:376
↓ 17 callers
Function
createMockPuppeteerPage
()
tests/mocks.ts:274
↓ 16 callers
Method
#scheduleTask
* Holds the queue of `filePath`, or the heap queue without a path, until * the guard is disposed.
src/processors/HeapSnapshotManager.ts:154
↓ 16 callers
Method
getRoute
(path: string)
tests/server.ts:44
↓ 16 callers
Method
getSnapshot
(filePath: string)
src/processors/HeapSnapshotManager.ts:167
↓ 15 callers
Method
create
* Creates a worker with a freshly minted id derived from its type (e.g. * `sw-1`). Keeps id composition in one place so callers only supply the typ
src/McpWorker.ts:58
↓ 15 callers
Method
fail
(error: unknown)
src/McpPage.ts:1675
↓ 15 callers
Function
serverHooks
()
tests/server.ts:132
↓ 14 callers
Function
createMockMcpContext
( options: {selectedPage?: MockMcpPage; taskRunner?: TaskRunner} = {}, )
tests/mocks.ts:546
↓ 14 callers
Function
createMockPuppeteerTarget
( options: { page?: sinon.SinonStubbedInstance<Page>; url?: string; title?: string; type?: T
tests/mocks.ts:393
↓ 14 callers
Method
toJSON
()
src/formatters/CssFormatter.ts:1274
↓ 13 callers
Method
addRoute
( path: string, handler: (req: IncomingMessage, res: ServerResponse) => void, )
tests/server.ts:62
↓ 12 callers
Function
createMockParsedArguments
( options: Partial<ParsedArguments> = {}, )
tests/mocks.ts:1405
↓ 12 callers
Method
init
(options?: {emulateFocus?: boolean})
src/McpPage.ts:345
↓ 12 callers
Method
isClosed
()
src/McpPage.ts:325
↓ 11 callers
Function
createMockMcpPage
( options: { id?: number; pptrPage?: MockPuppeteerPage; target?: sinon.SinonStubbedInstance<Mock
tests/mocks.ts:419
↓ 11 callers
Method
newPage
( background?: boolean, isolatedContextName?: string, )
src/McpContext.ts:595
↓ 11 callers
Function
runCli
( args: string[], sessionId?: string, options?: {cwd?: string}, )
tests/utils.ts:509
↓ 11 callers
Method
saveFile
( data: Uint8Array<ArrayBufferLike>, clientProvidedFilePath: string, extension: SupportedExtension
src/McpContext.ts:1092
↓ 11 callers
Method
send
(message: WatchdogMessage)
src/telemetry/WatchdogClient.ts:64
↓ 10 callers
Function
formatName
( name: string, options: HeapSnapshotFormatOptions, )
src/formatters/HeapSnapshotFormatter.ts:35
↓ 10 callers
Method
getDialog
()
src/McpPage.ts:602
↓ 10 callers
Function
isDaemonRunning
(sessionId: string)
src/daemon/utils.ts:151
↓ 9 callers
Method
#formatProperties
( props: DevTools.CSSProperty.CSSProperty[], matchedStyles: MatchedStyles, )
src/formatters/CssFormatter.ts:1118
↓ 9 callers
Function
createMockCSSStyleDeclaration
( properties: DevTools.CSSProperty.CSSProperty[], options: MockCSSStyleDeclarationOptions = {}, )
tests/mocks.ts:716
↓ 9 callers
Function
createMockPuppeteerBrowser
()
tests/mocks.ts:201
↓ 9 callers
Method
getData
(includePreservedData?: boolean)
src/collectors/PageCollector.ts:224
↓ 9 callers
Function
getErrorMessage
(err: unknown)
src/utils/errorHandling.ts:67
↓ 9 callers
Function
getPidFilePath
(sessionId: string)
src/daemon/utils.ts:74
↓ 9 callers
Function
getTextContent
( content: CallToolResult['content'][number], )
tests/utils.ts:65
↓ 9 callers
Method
platform
()
src/devtools/McpHostBindingAdapter.ts:241
↓ 9 callers
Method
scheduleTask
(queue: TaskQueue, signal?: AbortSignal)
src/utils/TaskRunner.ts:19
↓ 9 callers
Method
stop
()
tests/server.ts:118
↓ 9 callers
Method
url
()
tests/mocks.ts:370
↓ 8 callers
Function
assertValidSessionId
(sessionId: string)
src/daemon/utils.ts:24
↓ 8 callers
Function
createMockCDPSession
( options: {targetId?: string} = {}, )
tests/mocks.ts:240
↓ 8 callers
Function
createTools
(args: ParsedArguments)
src/tools/tools.ts:33
↓ 8 callers
Method
from
( request: HTTPRequest, options: NetworkFormatterOptions, )
src/formatters/NetworkFormatter.ts:87
↓ 8 callers
Method
getElementByUid
(uid: string)
src/McpPage.ts:1233
↓ 8 callers
Function
parseArgs
(...argv: string[])
tests/tools/screencast.test.ts:25
↓ 8 callers
Method
parseConfig
* Parses CLI arguments and the config file into a layered * {@link ServerConfig}.
src/config/ConfigParser.ts:144
↓ 8 callers
Function
redactUrlForLogging
(value: string)
src/utils/logger.ts:74
↓ 8 callers
Function
stripUnderscoreBeforeNumber
(name: string)
src/telemetry/transformation.ts:157
↓ 8 callers
Method
toJSONDetailed
()
src/formatters/IssueFormatter.ts:71
↓ 7 callers
Method
#allMcpPages
()
src/McpContext.ts:228
↓ 7 callers
Method
#getStyleProperties
( style: DevTools.CSSStyleDeclaration.CSSStyleDeclaration, )
src/formatters/CssFormatter.ts:700
↓ 7 callers
Function
categoryToFlagName
(category: ToolCategory)
src/config/category-options.ts:154
↓ 7 callers
Method
commit
* Commits a previously validated {@link ServerConfig} snapshot in place so * all shared {@link ReadonlyServerConfig} readers observe the new values
src/config/ServerConfig.ts:334
↓ 7 callers
Method
createQueue
* Creates a queue. Tasks on the new queue and tasks on `parent` wait for * each other. Without `parent`, the queue is a child of the root, so only
src/utils/TaskRunner.ts:101
↓ 7 callers
Function
createTempFile
( content: string, fileName: string, baseDir: string = os.tmpdir(), )
tests/utils.ts:629
↓ 7 callers
Method
emulate
(options: { networkConditions?: string; cpuThrottlingRate?: number; geolocation?: GeolocationOptio
src/McpPage.ts:1453
↓ 7 callers
Method
getById
(stableId: number)
src/collectors/PageCollector.ts:242
↓ 7 callers
Function
isSlimTool
( tool: Pick<BaseToolDefinition, 'annotations'>, )
src/tools/ToolDefinition.ts:865
↓ 7 callers
Function
loadTraceAsBuffer
(filePath: string)
tests/trace-processing/fixtures/load.ts:17
↓ 7 callers
Method
reject
(error: Error)
scripts/profile/inspector.ts:24
↓ 7 callers
Method
reload
* Re-reads the config file resolved by `parse()` and merges it with the CLI * arguments again. Unlike `parse()`, it does not discover a new config
src/config/ConfigParser.ts:180
↓ 7 callers
Method
validatePath
(filePath?: string)
src/McpContext.ts:497
↓ 6 callers
Function
attachRuleMeta
( rule: sinon.SinonStubbedInstance<DevTools.CSSRule.CSSRule>, sourceURL?: string, origin: RuleOrigin = '
tests/mocks.ts:802
↓ 6 callers
Function
createCSSValue
(text: string)
tests/mocks.ts:827
↓ 6 callers
Method
createPagesSnapshot
()
src/McpContext.ts:939
↓ 6 callers
Function
formatBytes
(bytes: number)
scripts/profile/utils.ts:13
↓ 6 callers
Function
getMockBrowser
(options?: { process?: ChildProcess | null; wsEndpoint?: string; })
tests/utils.ts:479
↓ 6 callers
Function
getMockRequest
( options: { url?: string; method?: string; response?: HTTPResponse; failure?: HTTPRequest['
tests/utils.ts:300
↓ 6 callers
Method
getPageById
(pageId: number)
src/McpContext.ts:758
↓ 6 callers
Function
getSourceLocation
* Resolves the human-readable source location * * Checks in precedence order: * 1. Special origins: 'user agent stylesheet', 'injected stylesheet',
src/formatters/CssFormatter.ts:268
↓ 6 callers
Function
isObject
(value: unknown)
scripts/profile/utils.ts:9
↓ 6 callers
Function
parseConfig
(argv: string[] = [])
tests/ToolHandler.test.ts:63
↓ 6 callers
Function
raceWithSignal
( promise: Promise<T>, signal: AbortSignal, )
src/utils/raceWithSignal.ts:7
↓ 6 callers
Method
resetResponseLineForTesting
()
src/McpResponse.ts:2005
↓ 6 callers
Function
resolveCanonicalPath
(filePath: string)
src/utils/files.ts:50
↓ 6 callers
Method
setIsRunningPerformanceTrace
(x: boolean)
src/McpPage.ts:625
↓ 6 callers
Method
setPage
(page: McpPage)
src/McpResponse.ts:180
↓ 6 callers
Function
stopDaemonForCleanup
(sessionId: string)
tests/utils.ts:567
↓ 6 callers
Method
target
()
src/McpWorker.ts:74
↓ 6 callers
Method
timeout
(time: number)
src/utils/WaitForHelper.ts:112
↓ 6 callers
Method
toStringDetailed
()
src/formatters/IssueFormatter.ts:58
next →
1–100 of 1,492, ranked by callers