MCPcopy
hub / github.com/ChromeDevTools/chrome-devtools-mcp / find

Method find

src/PageCollector.ts:204–220  ·  view source on GitHub ↗
(
    page: Page,
    filter: (item: WithSymbolId<T>) => boolean,
  )

Source from the content-addressed store, hash-verified

202 }
203
204 find(
205 page: Page,
206 filter: (item: WithSymbolId<T>) => boolean,
207 ): WithSymbolId<T> | undefined {
208 const navigations = this.storage.get(page);
209 if (!navigations) {
210 return;
211 }
212
213 for (const navigation of navigations) {
214 const item = navigation.find(filter);
215 if (item) {
216 return item;
217 }
218 }
219 return;
220 }
221}
222
223export class ConsoleCollector extends PageCollector<

Callers 15

getByIdMethod · 0.95
resolveCdpRequestIdMethod · 0.45
getPageByIdMethod · 0.45
findAncestorNodeMethod · 0.45
getToolGroupsFunction · 0.45
webmcp.tsFile · 0.45
getWebWorkerFunction · 0.45
screencast.tsFile · 0.45
#lookupCauseMethod · 0.45
findMainFrameIdsMethod · 0.45
findMainFramePidTidsMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 1

startMockServerFunction · 0.36