MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / sendDevtoolCommand

Function sendDevtoolCommand

scripts/helpers/utils.js:497–504  ·  view source on GitHub ↗
(tab, commandName, commandParams = {})

Source from the content-addressed store, hash-verified

495// https://chromedevtools.github.io/devtools-protocol/
496// https://chromedevtools.github.io/devtools-protocol/tot/Page/#event-captureScreenshot
497export async function sendDevtoolCommand(tab, commandName, commandParams = {}) {
498 let res = await chrome.debugger.sendCommand(
499 { tabId: tab.id },
500 commandName,
501 commandParams
502 );
503 return res;
504}
505
506// https://developer.chrome.com/docs/extensions/reference/tabs/#method-captureVisibleTab
507// https://stackoverflow.com/q/14990822/11898496

Callers 4

webToPDF.jsFile · 0.90
showFps_v2.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected