[BUG] Claude in Chrome MCP extension disconnects during screenshot/JavaScript operations

Resolved 💬 3 comments Opened Dec 29, 2025 by pincastFM Closed Jan 2, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The mcp__claude-in-chrome browser automation tools consistently disconnect when executing content-inspection operations, even after restarting Chrome.

Operations that fail:

  • computer with action: screenshot → "Browser extension is not connected"
  • javascript_tool → "Failed to execute JavaScript: Detached while handling command"
  • read_page → "Detached while handling command"
  • read_console_messages → No messages captured
  • find → "Detached while handling command"

Operations that work:

  • tabs_context_mcp ✓
  • navigate ✓
  • wait ✓
  • tabs_create_mcp ✓

Environment:

  • macOS Darwin 23.3.0
  • Claude Code with Opus 4.5
  • Chrome (latest)
  • Tested on both localhost (self-signed cert) and google.com - same failure

What Should Happen?

Screenshot captured

Error Messages/Logs

"Browser extension is not connected" error

Steps to Reproduce

Steps to reproduce:

  1. Call tabs_context_mcp (succeeds)
  2. Call navigate to any URL (succeeds)
  3. Call computer with action: screenshot (disconnects)

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.76 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗