MCPcopy Create free account

hub / github.com/ChromeDevTools/chrome-devtools-mcp / functions

Functions1,397 in github.com/ChromeDevTools/chrome-devtools-mcp

↓ 70 callersMethodget
()
src/telemetry/ClearcutLogger.ts:104
↓ 68 callersMethodresolve
(result: unknown)
scripts/profile/inspector.ts:25
↓ 63 callersFunctionlogger
(...args: unknown[])
src/utils/logger.ts:134
↓ 46 callersMethodparse
()
src/config/ConfigParser.ts:160
↓ 43 callersMethodfind
( filter: (item: WithSymbolId<T>) => boolean, )
src/collectors/PageCollector.ts:207
↓ 34 callersMethodfrom
( config: ServerConfig, options: McpServerOptions, )
src/index.ts:319
↓ 33 callersMethodgetSelectedMcpPage
()
src/McpContext.ts:690
↓ 33 callersMethodtoString
()
src/formatters/CssFormatter.ts:1154
↓ 32 callersMethoderror
()
src/McpResponse.ts:368
↓ 31 callersMethodhandler
( request: Request<Schema>, response: Response, context: Context, )
src/tools/ToolDefinition.ts:167
↓ 30 callersMethodclose
()
scripts/profile/source_map_server.ts:10
↓ 28 callersMethodurl
()
src/McpPage.ts:297
↓ 24 callersFunctionwithMcpContext
( cb: ( response: McpResponse, context: McpContext, args: ParsedArguments, ) => Promise<void>,
tests/utils.ts:206
↓ 23 callersMethodappendResponseLine
(value: string)
src/tools/ToolDefinition.ts:244
↓ 23 callersMethodconsumePageNavigation
* 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
↓ 22 callersMethodassertNextCall
* 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 callersFunctioncreateHandlerMocks
(options: Partial<ParsedArguments> = {})
tests/mocks.ts:591
↓ 21 callersFunctioncreateMockServerConfig
( options: Partial<ParsedArguments> = {}, )
tests/mocks.ts:1361
↓ 20 callersFunctiondefinePageTool
( definition: (args: ParsedArguments) => PageToolDefinition<Schema>, )
src/tools/ToolDefinition.ts:622
↓ 20 callersMethoddispose
()
src/McpPage.ts:923
↓ 19 callersMethodhandle
* Cancellation stops waiting for a result, but running work keeps its queue * until it settles, including response processing, to preserve serializ
src/ToolHandler.ts:486
↓ 19 callersFunctionhtml
( strings: TemplateStringsArray, ...values: unknown[] )
tests/utils.ts:355
↓ 18 callersMethodaddHtmlRoute
(path: string, htmlContent: string)
tests/server.ts:51
↓ 18 callersMethodtype
()
tests/mocks.ts:369
↓ 17 callersFunctioncreateMockPuppeteerPage
()
tests/mocks.ts:267
↓ 17 callersFunctioncreateTempDir
( prefix = 'chrome-devtools-test-', baseDir: string = os.tmpdir(), )
tests/utils.ts:552
↓ 16 callersMethod#scheduleTask
* Holds the queue of `filePath`, or the heap queue without a path, until * the guard is disposed.
src/processors/HeapSnapshotManager.ts:153
↓ 16 callersMethodgetRoute
(path: string)
tests/server.ts:44
↓ 16 callersMethodgetSnapshot
(filePath: string)
src/processors/HeapSnapshotManager.ts:166
↓ 15 callersMethodcreate
* 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 callersFunctionserverHooks
()
tests/server.ts:132
↓ 14 callersFunctioncreateMockPuppeteerTarget
( options: { page?: sinon.SinonStubbedInstance<Page>; url?: string; title?: string; type?: T
tests/mocks.ts:386
↓ 14 callersMethodfail
(error: unknown)
src/McpPage.ts:1652
↓ 14 callersMethodsend
(message: WatchdogMessage)
src/telemetry/WatchdogClient.ts:69
↓ 14 callersMethodtoJSON
()
src/formatters/CssFormatter.ts:1171
↓ 13 callersMethodaddRoute
( path: string, handler: (req: IncomingMessage, res: ServerResponse) => void, )
tests/server.ts:62
↓ 12 callersFunctioncreateMockParsedArguments
( options: Partial<ParsedArguments> = {}, )
tests/mocks.ts:1351
↓ 12 callersMethodinit
(options?: {emulateFocus?: boolean})
src/McpPage.ts:343
↓ 11 callersFunctioncreateMockMcpContext
( options: {selectedPage?: MockMcpPage; taskRunner?: TaskRunner} = {}, )
tests/mocks.ts:523
↓ 11 callersMethodisClosed
()
src/McpPage.ts:323
↓ 11 callersMethodnewPage
( background?: boolean, isolatedContextName?: string, )
src/McpContext.ts:589
↓ 11 callersMethodsaveFile
( data: Uint8Array<ArrayBufferLike>, clientProvidedFilePath: string, extension: SupportedExtension
src/McpContext.ts:1046
↓ 10 callersFunctionformatName
( name: string, options: HeapSnapshotFormatOptions, )
src/formatters/HeapSnapshotFormatter.ts:34
↓ 10 callersFunctionisDaemonRunning
(sessionId: string)
src/daemon/utils.ts:151
↓ 10 callersFunctionrunCli
( args: string[], sessionId?: string, options?: {cwd?: string}, )
tests/utils.ts:466
↓ 9 callersMethod#formatProperties
( props: DevTools.CSSProperty.CSSProperty[], matchedStyles: MatchedStyles, )
src/formatters/CssFormatter.ts:1096
↓ 9 callersFunctioncreateMockCSSStyleDeclaration
( properties: DevTools.CSSProperty.CSSProperty[], options: MockCSSStyleDeclarationOptions = {}, )
tests/mocks.ts:681
↓ 9 callersFunctioncreateMockMcpPage
( options: { id?: number; pptrPage?: MockPuppeteerPage; target?: sinon.SinonStubbedInstance<Mock
tests/mocks.ts:412
↓ 9 callersFunctioncreateMockPuppeteerBrowser
()
tests/mocks.ts:203
↓ 9 callersMethodscheduleTask
(queue: TaskQueue, signal?: AbortSignal)
src/utils/TaskRunner.ts:19
↓ 9 callersMethodstop
()
tests/server.ts:118
↓ 9 callersMethodurl
()
tests/mocks.ts:363
↓ 8 callersFunctionassertValidSessionId
(sessionId: string)
src/daemon/utils.ts:24
↓ 8 callersFunctioncreateTools
(args: ParsedArguments)
src/tools/tools.ts:33
↓ 8 callersMethodfrom
( request: HTTPRequest, options: NetworkFormatterOptions, )
src/formatters/NetworkFormatter.ts:87
↓ 8 callersMethodgetDialog
()
src/McpPage.ts:600
↓ 8 callersFunctiongetErrorMessage
(err: unknown)
src/utils/errorHandling.ts:10
↓ 8 callersFunctiongetPidFilePath
(sessionId: string)
src/daemon/utils.ts:74
↓ 8 callersMethodparseConfig
* Parses CLI arguments and the config file into a layered * {@link ServerConfig}.
src/config/ConfigParser.ts:144
↓ 8 callersFunctionredactUrlForLogging
(value: string)
src/utils/logger.ts:59
↓ 8 callersFunctionstripUnderscoreBeforeNumber
(name: string)
src/telemetry/transformation.ts:157
↓ 8 callersMethodtoJSONDetailed
()
src/formatters/IssueFormatter.ts:71
↓ 7 callersMethod#allMcpPages
()
src/McpContext.ts:224
↓ 7 callersMethod#getStyleProperties
( style: DevTools.CSSStyleDeclaration.CSSStyleDeclaration, )
src/formatters/CssFormatter.ts:680
↓ 7 callersMethodcommit
* Commits a previously validated {@link ServerConfig} snapshot in place so * all shared {@link ReadonlyServerConfig} readers observe the new values
src/config/ServerConfig.ts:340
↓ 7 callersMethodcreateQueue
* 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 callersFunctioncreateTempFile
( content: string, fileName: string, baseDir: string = os.tmpdir(), )
tests/utils.ts:572
↓ 7 callersMethodemulate
(options: { networkConditions?: string; cpuThrottlingRate?: number; geolocation?: GeolocationOptio
src/McpPage.ts:1430
↓ 7 callersMethodgetElementByUid
(uid: string)
src/McpPage.ts:1218
↓ 7 callersFunctiongetTextContent
( content: CallToolResult['content'][number], )
tests/utils.ts:60
↓ 7 callersFunctionisSlimTool
( tool: Pick<BaseToolDefinition, 'annotations'>, )
src/tools/ToolDefinition.ts:847
↓ 7 callersFunctionloadTraceAsBuffer
(filePath: string)
tests/trace-processing/fixtures/load.ts:17
↓ 7 callersFunctionparseArgs
(...argv: string[])
tests/tools/screencast.test.ts:25
↓ 7 callersMethodplatform
()
src/devtools/McpHostBindingAdapter.ts:241
↓ 7 callersMethodreject
(error: Error)
scripts/profile/inspector.ts:24
↓ 7 callersMethodreload
* 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 callersMethodresetResponseLineForTesting
()
src/McpResponse.ts:1886
↓ 7 callersMethodvalidatePath
(filePath?: string)
src/McpContext.ts:493
↓ 6 callersFunctionattachRuleMeta
( rule: sinon.SinonStubbedInstance<DevTools.CSSRule.CSSRule>, sourceURL?: string, origin: RuleOrigin = '
tests/mocks.ts:761
↓ 6 callersFunctioncategoryToFlagName
(category: ToolCategory)
src/config/category-options.ts:155
↓ 6 callersFunctioncreateCSSValue
(text: string)
tests/mocks.ts:786
↓ 6 callersMethodcreatePagesSnapshot
()
src/McpContext.ts:893
↓ 6 callersMethodgetData
(includePreservedData?: boolean)
src/collectors/PageCollector.ts:179
↓ 6 callersFunctiongetMockRequest
( options: { url?: string; method?: string; response?: HTTPResponse; failure?: HTTPRequest['
tests/utils.ts:270
↓ 6 callersMethodgetPageById
(pageId: number)
src/McpContext.ts:748
↓ 6 callersFunctiongetSourceLocation
* Resolves the human-readable source location * * Checks in precedence order: * 1. Special origins: 'user agent stylesheet', 'injected stylesheet',
src/formatters/CssFormatter.ts:260
↓ 6 callersFunctionisObject
(value: unknown)
scripts/profile/utils.ts:9
↓ 6 callersFunctionresolveCanonicalPath
(filePath: string)
src/utils/files.ts:18
↓ 6 callersMethodsetIsRunningPerformanceTrace
(x: boolean)
src/McpPage.ts:623
↓ 6 callersMethodsetPage
(page: McpPage)
src/McpResponse.ts:171
↓ 6 callersFunctionstopDaemonForCleanup
(sessionId: string)
tests/utils.ts:510
↓ 6 callersMethodtarget
()
src/McpWorker.ts:74
↓ 6 callersMethodtoStringDetailed
()
src/formatters/IssueFormatter.ts:58
↓ 5 callersMethod#addMcpClient
( payload: ChromeDevToolsMcpExtension, )
src/telemetry/ClearcutLogger.ts:167
↓ 5 callersMethodapplyDefaults
* 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 callersMethodassertTextIncludes
* Asserts that the model's response contains every given substring, * ignoring case.
scripts/eval_result.ts:107
↓ 5 callersMethodcallTool
( name: string, args: Record<string, unknown> = {}, )
src/index.ts:165
↓ 5 callersMethodconnect
(transport: Transport)
src/index.ts:158
↓ 5 callersFunctioncreateConnectedMcpContext
( browser: Browser, options: Omit<McpContextOptions, 'getBrowser' | 'taskRunner'> & { taskRunner?: Tas
tests/utils.ts:186
↓ 5 callersFunctioncreateMockCDPSession
()
tests/mocks.ts:238
next →1–100 of 1,397, ranked by callers