browser_partition
Create isolated browser partitions so parallel agents keep separate tab groups and active tabs, preventing them from taking over each other's work; close a partition to release its port and tabs.
Instructions
Give a parallel agent its own part of the browser. action "new" opens a partition: its own listener port, so the extension gives it its own tab group and its own active tab, and agents that share this chat no longer take over each other's tabs. It answers an id like "p1"; pass partition: "p1" to every browser tool that agent calls (calls without partition go to the default partition). Ids are never reused while the server runs (when the MCP client restarts the server, numbering starts at p1 again). "new" chooses the Chrome profile right away by the same rules as BROWSER_MCP_PROFILE: pass profile to choose by the name in the extension popup, otherwise the partition uses BROWSER_MCP_PROFILE (or, without it, the same choice as the default partition: it waits about 2.5 seconds for the installations to connect, then takes the newest extension version, on a tie the one that connected last, and the answer says which one it took). It takes a few seconds, because the extension scans for new ports every 2 seconds. Errors: partition-limit (4 open partitions per server), port-capacity-exhausted (every port in the range is taken), the profile-* answers (profile-not-connected and the others; no partition is created and its port is released), and partition-closed when the partition is closed while "new" is still creating it. action "close" closes the partition's tabs through its own connection and releases its port: port_released, and tabs_closed true only when the extension confirmed it or when no tool call ever used the partition (it then has no tabs, and the extension is not asked), otherwise "unknown". Calls with a closed id answer partition-closed with sent: false. A command that is still waiting for the extension's answer when close releases the port answers partition-closed with sent: true (it may have been carried out); one answered before that gets its normal answer. An unknown id, or the id of a partition "new" is still creating, answers partition-not-found. Nothing is sent to the default partition instead. browser_about lists the partitions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "browser_partition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | With new: an optional label for your own overview, shown in browser_about (up to 64 characters). | |
| action | Yes | "new" opens a partition, "close" closes one. | |
| profile | No | With new: the name of the Chrome profile in the extension popup ("This Chrome profile") the partition drives. Default: BROWSER_MCP_PROFILE. | |
| partition | No | With close: the id of the partition to close, e.g. "p1". The default partition cannot be closed. |