Install
openclaw skills install openclaw-browser-recoverDiagnose and recover OpenClaw browser tool timeouts (browser.status/tabs/snapshot) involving gateway ports 18789/18791 and Chrome CDP 9222 conflicts. Use whe...
openclaw skills install openclaw-browser-recover目标:在 不瞎重试 的前提下,快速恢复 browser 工具可用性,并给用户一句话的“下一步动作”。
browser 工具依赖 gateway 的 browser-control(通常监听 18791)profile="user" 依赖本机 Chrome 的 CDP 9222(必须有 Chrome 正在跑且 9222 可用)profile="openclaw" 也默认使用 9222;如果 9222 已被本机 Chrome 占用,会出现 PortInUsetimed out... Do NOT retry:说明链路卡死,重复调用 browser 工具只会更糟。运行:
openclaw gateway status
ss -lntp | egrep '(:18789|:18791|:9222)' || true
判读:
依次:
browser.status profile="user"browser.tabs profile="user" limit=5如果仍 timeout / MCP Connection closed → 进入第 3 步。
A. 只做一次 gateway 重启:
openclaw gateway restartB. 仍然 Connection closed:
browser.status profile="user"C. 需要 openclaw profile 但 9222 被占:
同一轮最多:一次 restart;不要 stop+start 连击,除非用户明确要求。
openclaw gateway restart,我再继续。”如果需要一键体检,运行:
bash skills/openclaw-browser-recover/scripts/healthcheck.sh