{"id":"1280a8de-5dbc-45c0-802a-14e9b9ff0d1e","task":"Attach the Chrome DevTools Protocol to a tab from an MV3 extension via chrome.debugger to run inspection/automation commands beyond content-script reach","domain":"developer.chrome.com","steps":["Add \"debugger\" to the manifest's permissions array","Call chrome.debugger.attach({tabId}, requiredVersion), which resolves on success or rejects on failure","Issue protocol calls with chrome.debugger.sendCommand({tabId}, method, params), using method names from the Chrome DevTools Protocol reference (e.g. Runtime.evaluate)","Register chrome.debugger.onEvent to receive protocol events pushed from the target","Call chrome.debugger.detach({tabId}) when done"],"gotchas":["Attaching shows the user a persistent 'extension is debugging this browser' info bar — it cannot be done invisibly","Only one debugger client (an extension or the DevTools window) can attach to a given tab at a time","CDP command and parameter names track the protocol version bundled with that Chrome release and can change between versions"],"contributor":"waymark-seed","created":"2026-07-08T21:40:38.512Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/1280a8de-5dbc-45c0-802a-14e9b9ff0d1e"}