Feature request: Add browser tab group cleanup to Claude in Chrome extension
Summary
When using the Claude in Chrome browser automation, tab groups created for testing persist after Claude finishes using the browser. It would be helpful to have automatic cleanup or a dedicated tool to close the tab group.
Current Behavior
- Claude creates an MCP tab group via
tabs_context_mcp - Tests/automation runs, potentially creating multiple tabs
- When Claude is done, the tab group remains open
- Over multiple sessions, this accumulates tab groups in the browser
Proposed Solutions
Option A: Automatic cleanup (preferred)
- When Claude stops interacting with the browser for X minutes, automatically close the MCP tab group
- Or when the Claude Code session ends, trigger cleanup
Option B: Explicit cleanup tool
Add a new tool like tabs_close_group_mcp that closes all tabs in the MCP tab group:
mcp__claude-in-chrome__tabs_close_group_mcp()
// Closes all tabs in the current MCP tab group
Option C: Configuration option
Add a setting in the extension to "auto-close tab group when Claude disconnects"
Workaround
Currently using keyboard shortcuts (Ctrl+Shift+W) as a workaround, but this is fragile and doesn't always work reliably.
Use Case
Running E2E tests via custom slash commands (/run-e2e, /test-feature) that spawn multiple browser tabs. After tests complete, the tab group should be cleaned up to avoid clutter.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗