You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal: let an MCP client label its own tab group (browser_set_group_label) #41840
Once multiple simultaneous MCP client connections are supported (#41838), a user running several
agents at once against the same browser has no easy way to tell which Chrome tab group belongs to
which task or agent - each just shows as "Playwright" (or "Playwright · " under #41838), which isn't always meaningful (e.g. several connections from the same client name/tool,
or a generic name that doesn't describe the task).
This is also mildly useful even with a single connection - a user can see at a glance what an
agent is currently working on from the tab group's title, without switching to the agent's
terminal/window.
Proposed tool
A new MCP tool, browser_set_group_label, letting an agent set a short custom label for its own
connection's tab group early in a task:
This renames the connection's tab group to Playwright · <label> (deduplicated with a (2), (3)... suffix if another active connection already used that exact label). The tool's own
description would suggest calling it once, early, especially when the user might be running the
agent alongside others - since MCP tools are discovered by their description, not by hardcoded
client-side instructions.
Scope
Touches both the extension (packages/extension, applying the label to the actual Chrome tab
group) and the server (packages/playwright-core/src/tools, a new MCP tool + a small new
session-level protocol command distinct from the existing CDP-passthrough commands). No protocol
version bump needed if kept backward compatible with clients that don't call it.
I have a working implementation and test coverage for this already, built on top of the
multi-connection work in #41838 (though the tool would still have narrow value even without it,
for the "what is this agent doing" case). Wanted to check whether this is a direction the team
would want before opening a PR, per the contribution guidelines - happy to adjust the shape of the
tool (naming, whether it belongs in core capability, etc.) based on feedback.
The tool should constrain label length/characters and make ownership explicit so one MCP connection cannot rename another connection's group. Please define default/reset behavior, concurrent updates, disconnect cleanup, and whether the browser UI may truncate independently. Tests with two same-client-name connections would validate the motivating case and isolation guarantee.
Quick update on this proposal: #42259 landed multi-connection support, so this is now just the labeling tool on top of the current connectedTabGroup.ts / uniqueGroupStyle.
I'm running the tool daily on a fork (several Claude Code sessions sharing one browser, 3 profiles) and it holds up: one session-level command (extension.setGroupLabel) from the relay to the extension, a no-op outside --extension, no protocol version bump (an older extension answers "Unknown method", which surfaces as a tool error).
Per CONTRIBUTING I won't open a PR without approval. I'd like to work on this one: could someone triage it and assign it, or tell me if you'd rather change the shape (tool name, core capability vs. a separate one, relay plumbing through BrowserBackend)? I'll rebase on current main and keep the diff small (tool + extension handler + one MCP test + one extension test).
We're closing all P3-collecting-feedback issues and retiring the label. #43813 explains why. This doesn't mean the request is wrong. If it still matters to you, please open a new issue against the latest Playwright version with your concrete use case and link back here.
Activity
hiSandog commentedon Jul 18, 2026
The tool should constrain label length/characters and make ownership explicit so one MCP connection cannot rename another connection's group. Please define default/reset behavior, concurrent updates, disconnect cleanup, and whether the browser UI may truncate independently. Tests with two same-client-name connections would validate the motivating case and isolation guarantee.
dosxnjos commentedon Sep 29, 2026
Quick update on this proposal: #42259 landed multi-connection support, so this is now just the labeling tool on top of the current
connectedTabGroup.ts/uniqueGroupStyle.I'm running the tool daily on a fork (several Claude Code sessions sharing one browser, 3 profiles) and it holds up: one session-level command (
extension.setGroupLabel) from the relay to the extension, a no-op outside--extension, no protocol version bump (an older extension answers "Unknown method", which surfaces as a tool error).Per CONTRIBUTING I won't open a PR without approval. I'd like to work on this one: could someone triage it and assign it, or tell me if you'd rather change the shape (tool name,
corecapability vs. a separate one, relay plumbing throughBrowserBackend)? I'll rebase on currentmainand keep the diff small (tool + extension handler + one MCP test + one extension test).pavelfeldman commentedon Oct 31, 2026
We're closing all
P3-collecting-feedbackissues and retiring the label. #43813 explains why. This doesn't mean the request is wrong. If it still matters to you, please open a new issue against the latest Playwright version with your concrete use case and link back here.