MCPcopy
hub / github.com/ChromeDevTools/chrome-devtools-mcp / #getMcpPage

Method #getMcpPage

src/McpContext.ts:523–529  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

521 }
522
523 #getMcpPage(page: Page): McpPage {
524 const mcpPage = this.#mcpPages.get(page);
525 if (!mcpPage) {
526 throw new Error('No McpPage found for the given page.');
527 }
528 return mcpPage;
529 }
530
531 #getSelectedMcpPage(): McpPage {
532 return this.#getMcpPage(this.getSelectedPptrPage());

Callers 5

newPageMethod · 0.95
emulateMethod · 0.95
getSelectedMcpPageMethod · 0.95
#getSelectedMcpPageMethod · 0.95
createPagesSnapshotMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected