feat: add Chrome tab group tools (create/update/add_tabs/close/list)#341
Open
gkrdl wants to merge 3 commits into
Open
feat: add Chrome tab group tools (create/update/add_tabs/close/list)#341gkrdl wants to merge 3 commits into
gkrdl wants to merge 3 commits into
Conversation
Adds five new MCP tools for managing Chrome tab groups: - chrome_tab_group_create - chrome_tab_group_update - chrome_tab_group_add_tabs - chrome_tab_group_close - chrome_tab_group_list Each tool's JSON schema is exposed via TOOL_SCHEMAS so MCP clients can discover and invoke them without code changes on the native-server side.
Implements the chrome_tab_group_* tool family on the extension side using chrome.tabs.group and chrome.tabGroups.update / .query / .get. Adds a new tab-group.ts module with five handlers and registers them through the existing browser tool barrel. Also declares the "tabGroups" permission in the WXT manifest so Chrome exposes the tabGroups API to the service worker. Without this, the new handlers would throw at runtime even though chrome.tabs.group itself is covered by the existing "tabs" permission.
Adds a new "Tab Grouping (5 tools)" section to both README.md and README_zh.md so the chrome_tab_group_* tools are discoverable from the project landing page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds five tools that wrap the Chrome
tabs.group/tabGroupsAPIs so MCP clients can organize their automation tabs into named, collapsed groups instead of leaving loose tabs in the user's daily window.Tools added
chrome_tab_group_createtabIds,title?,color?,windowId?groupId.chrome_tab_group_updategroupId,title?,color?,collapsed?chrome_tab_group_add_tabsgroupId,tabIdschrome_tab_group_closegroupIdchrome_tab_group_listwindowId?,color?,title?,collapsed?tabIds).A new
tabGroupspermission has been added to the extension manifest.Why this matters
Without these, an MCP client running multi-tab research (price comparison, multi-source lookup, etc.) leaves a pile of tabs in the user's main window, and the user has to close them one by one. With grouping, the client can:
End-user impact: their daily window stays clean during automation, and they can collapse/expand the group on their own to review what the agent is doing.
Verification
Notes