chrome-tab-sweeper
Chrome Tab Sweeper
Chrome MCP creates a tab group every time you use browser tools (tabs_context_mcp, navigate, screenshot, etc.). These groups persist after the work is done, and over time Chrome fills up with dozens of empty, stale groups. This skill closes all tabs in the MCP group, which causes Chrome to auto-remove the group itself.
Workflow
Step 1: Check for existing tab group
Call tabs_context_mcp without createIfEmpty to see if an MCP tab group exists and get the tab IDs inside it.
If no group exists or the group has no tabs, tell the user there's nothing to clean up and stop.
Step 2: Close all tabs
For each tab ID returned in step 1, call tabs_close_mcp to close it.
Chrome automatically removes a tab group when its last tab is closed, so there's no separate "delete group" step needed.
Step 3: Confirm
Tell the user how many tabs were closed and that the group has been removed.
When to run this skill
- The user explicitly asks to clean up Chrome tabs or groups
- You just finished a task that used any Chrome MCP tools — run this proactively without being asked
- The user mentions Chrome has too many tab groups or looks cluttered