Organize Tabs
When to Use
Activate when the user asks to organize tabs, clean up tab clutter, group related tabs, close duplicates, or manage their open browser tabs.
Steps
-
List all open tabs using
list_pagesto get the full inventory of open pages with their titles and URLs. -
Analyze and categorize. Group tabs by:
- Domain — Same website tabs together
- Topic — Related content across domains (e.g., all "travel planning" tabs)
- Activity — Shopping, research, social media, work, entertainment
-
Identify issues:
- Duplicates — Same URL open in multiple tabs
- Dead tabs — Error pages, "page not found", crashed tabs
- Stale tabs — Tabs that are likely no longer needed
-
Present a plan to the user:
## Tab Analysis
**Total tabs:** [N]
### Groups Found
- Work: [list of tabs]
- Research: [list of tabs]
- Shopping: [list of tabs]
- Uncategorized: [list of tabs]
### Issues
- Duplicates: [N] tabs (will close extras)
- Dead/Error pages: [N] tabs (will close)
### Proposed Actions
1. Group [N] tabs into [M] tab groups
2. Close [N] duplicate tabs
3. Close [N] dead tabs
-
Execute with user confirmation:
- Use
group_tabsto create named tab groups for each category - Use
close_pageto close duplicates (keep the first instance) - Use
close_pageto close dead/error tabs
- Use
-
Offer to bookmark stale tabs before closing using
create_bookmark.
Tips
- Always ask before closing tabs — users may have unsaved work.
- Keep at least one tab open at all times.
- For duplicate detection, compare URLs after removing query parameters and fragments.
- If the user has 50+ tabs, prioritize grouping over individual analysis.
Scan to join WeChat group