feat(extension): let an MCP client label its own tab group - #42360
Open
Yury Semikhatsky (yury-s) wants to merge 1 commit into
Open
feat(extension): let an MCP client label its own tab group#42360Yury Semikhatsky (yury-s) wants to merge 1 commit into
Yury Semikhatsky (yury-s) wants to merge 1 commit into
Conversation
Adds a browser_set_group_label tool and a matching tab-group-label CLI command, available in --extension mode, that rename the connection's own Chrome tab group to "Playwright · <label>", deduplicated against the other active connections' groups. Fixes: microsoft#41840
Contributor
Test results for "MCP"8142 passed, 1361 skipped Merge workflow run. |
Devin Rousso (dcrousso)
approved these changes
Aug 24, 2026
| } | ||
|
|
||
| private _takenGroupStyles(exclude?: ConnectedTabGroup): GroupStyle[] { | ||
| return [...this._connections.values()].filter(group => group !== exclude).map(group => group.groupStyle); |
Contributor
There was a problem hiding this comment.
NIT: you could do this to avoid an extra iteration
Suggested change
| return [...this._connections.values()].filter(group => group !== exclude).map(group => group.groupStyle); | |
| return Array.from(this._connections.values(), group => group.groupStyle).filter(group => group !== exclude); |
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
browser_set_group_labelMCP tool (listed in--extensionmode only) and matchingtab-group-labelCLI command: renames the connection's own Chrome tab group toPlaywright · <label>, deduplicated with a(2),(3)... suffix against other active connections.extension.setGroupLabelrelay command, no protocol version bump; older extensions produce a clear "update the extension" error. A connection can only relabel its own group.Fixes #41840