#browser tool is failing with:Protocol error (Target.attachToBrowserTarget): {"code":-32000,"message
1 messages · Page 1 of 1 (latest)
@shadow pendant
If the Chrome extension tab-attach is failing (and you’re seeing Protocol error (Target.attachToBrowserTarget): {"code":-32000,...}), it’s almost always one of these:
- the extension isn’t actually attached to a normal web tab (badge not
ON) - the relay server isn’t reachable (badge
!) - the extension files are out of sync with your OpenClaw version (common after updating)
- Chrome won’t allow attaching to that tab (DevTools already attached, or you’re on a
chrome://…page)
Quick checklist (in order)
- Version first (important): paste:
openclaw --version
- Reinstall + reload the extension (fixes version mismatch):
openclaw browser extension install
openclaw browser extension path
Then Chrome → chrome://extensions → Reload the extension (or remove + “Load unpacked” again from the printed path).
- Attach to a normal https page
- Open something like
https://example.com - Click the OpenClaw Browser Relay extension icon until the badge shows
ON- If it shows
!: the relay isn’t reachable on this machine (see #5 below) - If it shows
…forever: also relay connectivity
- If it shows
-
Close DevTools on that tab
If Chrome DevTools is open on the tab, Chrome often refuses a second debugger attach. Close DevTools, detach (click extension once), then attach again. -
Are Gateway + Chrome on the same machine?
- Same machine: this should “just work”.
- Gateway on a VPS / other box: you must run a node host on the machine running Chrome, because the relay is loopback (
127.0.0.1:18792) on that machine.