tabmcp
v0.4.0MCP server that lets AI agents drive and inspect your real Chrome through the browser-mcp extension.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
browser_connect_tab
Take over an existing Chrome tab as this session's Connected tab; replaces this session's previous Connected tab. Pass either a tabId (from browser_tabs includeOthers) or a ref the user pasted (browser-mcp://tab/<id>?key=<key>, from the popup's Copy reference). With a ref there is no prompt. With a tabId, the user is asked in a Chrome notification the first time an agent takes a tab on that site, and always when another session controls the tab.
| Parameter | Type | Description |
|---|---|---|
ref | string | Tab reference the user pasted: browser-mcp://tab/<id>?key=<key> |
tabId | integer | Tab id from browser_tabs |
browser_update_extension
Install the browser-mcp Chrome extension release that matches this server and make Chrome reload it. Use when a browser tool fails with EXTENSION_VERSION_MISMATCH (the extension and server versions don't match). Downloads from the project's GitHub releases into the extension folder.
browser_disconnect
Release this session's Connected tab (removes its tab group, border and badge; detaches the debugger).
browser_request_control
Legacy: no lease is needed any more because each session owns its own Connected tab. Returns this session's status (same as browser_control_status).
browser_release_control
Legacy alias of browser_disconnect: release this session's Connected tab.
browser_control_status
This session's identity and Connected tab, plus which tabs other MCP sessions are controlling.
browser_tabs
List this session's Connected tab and optionally other open tabs (read-only; others show connectedBy when another session owns them). Use browser_open to create a tab, or browser_connect_tab to take over an existing one.
| Parameter | Type | Description |
|---|---|---|
includeOthers | boolean | Include other open tabs |
browser_open
Open a web page in the user's real Chrome (with their logins) to browse, read or interact with it. Creates a new tab that becomes this session's Connected tab, replacing any previous one. Start here for any task that needs a browser. Restricted URLs (chrome://, Web Store, …) are rejected.
| Parameter | Type | Description |
|---|---|---|
url * | string | Absolute URL to open |
active | boolean | Focus the new tab (default true). Background tabs cannot be screenshotted. |
recordNetwork | boolean | Attach the debugger before loading so devtools_network_* includes the page's own initial requests (default false; Chrome shows its 'debugging this browser' bar). |
browser_go_back
Go back in history on the Connected tab.
browser_go_forward
Go forward in history on the Connected tab.
browser_wait
Wait for a duration and/or load state on the Connected tab.
| Parameter | Type | Description |
|---|---|---|
load | string | Wait for document load state |
time | number | Milliseconds to wait |
browser_press_key
Press a key on the Connected page (e.g. Enter, Escape, Tab, a). If it starts a navigation, waits for it to finish and returns navigated/url.
| Parameter | Type | Description |
|---|---|---|
key * | string | Key name |
waitForNavigation | boolean | Wait for a navigation triggered by the key (default true) |
browser_snapshot
Read the current page: an accessibility snapshot of the Connected tab (main frame + iframes) listing interactive elements with their state (value, checked, …) and ref handles for browser_click / browser_type. Main-frame refs look like e3; iframe refs look like f1842.e3. May include frames[] metadata and a warning when the main frame is shell-only.
| Parameter | Type | Description |
|---|---|---|
interestingOnly | boolean | Only include interesting interactive nodes |
browser_find
Find elements across the Connected page and its iframes by accessible name/text. Returns clickable refs (eN or f{frameId}.eN).
| Parameter | Type | Description |
|---|---|---|
query * | string | Case-insensitive substring to match |
limit | integer | Max matches (default 20) |
browser_click
Click an element by snapshot/find ref (eN or f{frameId}.eN) or pin from browser_pick_element / browser_pins. If the click starts a navigation, waits for it to finish and returns navigated/url (take a fresh snapshot afterwards).
| Parameter | Type | Description |
|---|---|---|
button | string | |
doubleClick | boolean | |
pin | string | Pin id from browser_pick_element |
ref | string | Ref from browser_snapshot / browser_find (eN or f{frameId}.eN) |
waitForNavigation | boolean | Wait for a navigation triggered by the click (default true; adds ~0.4s when none starts) |
browser_hover
Hover an element by snapshot/find ref (eN or f{frameId}.eN) or pin.
| Parameter | Type | Description |
|---|---|---|
pin | string | |
ref | string | Ref eN or f{frameId}.eN |
browser_drag
Drag between snapshot refs and/or pins (same frame only for f{frameId}.eN refs).
| Parameter | Type | Description |
|---|---|---|
endPin | string | |
endRef | string | Ref eN or f{frameId}.eN |
startPin | string | |
startRef | string | Ref eN or f{frameId}.eN |
browser_type
Type text into an element by snapshot/find ref (eN or f{frameId}.eN) or pin. With submit, waits for a resulting navigation. Never pass passwords, OTPs, API keys or other secrets here — use browser_type_secure.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
pin | string | |
ref | string | Ref eN or f{frameId}.eN |
slowly | boolean | |
submit | boolean | |
waitForNavigation | boolean | When submit is set, wait for the navigation it triggers (default true) |
browser_type_secure
Type a secret (password, OTP, API key) into an element without the value ever entering this conversation or the tool log. Opens a secure extension window where the user types it; the extension types it straight into the page. Blocks until submit, cancel, or timeout; returns only { filled, chars, submitted } (never the value). Use this instead of asking the user for a secret in chat.
| Parameter | Type | Description |
|---|---|---|
kind | string | Input style in the secure window (default password) |
label | string | What is being asked, e.g. 'LinkedIn password' (shown in the window) |
pin | string | |
ref | string | Ref eN or f{frameId}.eN |
submit | boolean | Press Enter / submit the form after typing |
targetHint | string | Name of the target field, e.g. 'Mot de passe' |
timeoutMs | integer | How long to wait for the user (default 120000 ms) |
waitForNavigation | boolean | When submit is set, wait for the navigation it triggers (default true) |
browser_pick_element
Ask the user to click an element on the Connected tab. Blocks until pick, Esc cancel, or timeout (default 90s).
| Parameter | Type | Description |
|---|---|---|
prompt | string | Short instruction shown in the page banner |
browser_pick_cancel
Cancel an in-progress element pick on the Connected tab.
browser_pins
List pinned elements on the Connected tab.
browser_pin_inspect
Inspect a pinned element: attrs, src/href, nearby text, outerHTML, related URLs for network correlation.
| Parameter | Type | Description |
|---|---|---|
pin * | string | Pin id (e.g. pin_1) |
browser_pin_clear
Clear one pinned element by id, or all pins if id is omitted.
| Parameter | Type | Description |
|---|---|---|
id | string | Pin id (e.g. pin_1) |
browser_screenshot
Capture a screenshot of the Connected tab. The tab must be in front of its window (fails fast with TAB_NOT_VISIBLE otherwise). The agent indicator overlay is hidden during capture.
| Parameter | Type | Description |
|---|---|---|
fullPage | boolean | Best-effort full page (may use CDP) |
browser_console_messages
Return buffered console messages (CDP when debugger attached).
| Parameter | Type | Description |
|---|---|---|
clear | boolean |
devtools_attach
Attach chrome.debugger (CDP) to the Connected tab. Also attaches related existing workers (worker/shared_worker/service_worker) via chrome.debugger.getTargets and enables Network on them.
devtools_detach
Detach chrome.debugger from the Connected tab and any worker targets attached by this extension.
devtools_targets
List the Connected tab page target and related worker/shared_worker/service_worker targets (from chrome.debugger.getTargets), including whether each is attached.
devtools_network_requests
List buffered CDP network requests (HTTP + WebSocket) for this session's tab. Auto-attaches debugger. Buffer only fills after attach (use browser_open/browser_navigate with recordNetwork:true to include the initial page load); existing related workers are attached on attach, new ones via Target.setAutoAttach.
| Parameter | Type | Description |
|---|---|---|
filter | string | Legacy URL substring filter (same as url) |
host | string | Exact URL host match |
includeWebSocketMessages | boolean | Include buffered WS frame payloads |
limit | integer | |
method | string | HTTP method, e.g. GET/POST/PUT |
resourceKind | string | |
since | number | Only entries with timestamp >= since (ms epoch) |
status | integer | |
statusMax | integer | |
statusMin | integer | |
targetType | string | page | worker | service_worker | shared_worker | iframe |
type | string | CDP resource type, e.g. XHR, Fetch, Script, WebSocket |
url | string | URL substring (case-insensitive) |
urlRegex | string | URL regex (case-insensitive) |
waitForMs | integer | Block until a NEW matching request appears (uses since=now unless since is set). Max 300000ms; returns timedOut:true on expiry. |
devtools_network_summary
Compact summary of the network buffer (hosts, top paths with id-like segments collapsed to :id, target types, websockets). Auto-attaches debugger. Use for discovery before fetching full request lists.
| Parameter | Type | Description |
|---|---|---|
limitHosts | integer | Max hosts to return (default 15) |
limitPaths | integer | Max path aggregates to return (default 15) |
since | number | Only entries with timestamp >= since (ms epoch) |
devtools_network_request
Get full details for one buffered network request (headers, postData, initiator, WS frames).
| Parameter | Type | Description |
|---|---|---|
requestId * | string |
devtools_network_body
Get response body for a network request id.
| Parameter | Type | Description |
|---|---|---|
requestId * | string |
devtools_network_for_pin
Correlate a pin with buffered network requests using the element's related URLs (src, href, css backgrounds).
| Parameter | Type | Description |
|---|---|---|
pin * | string | Pin id from browser_pins / browser_pick_element |
includeWebSocketMessages | boolean | |
limit | integer |
devtools_console_messages
Console messages via CDP buffer only.
| Parameter | Type | Description |
|---|---|---|
clear | boolean |
devtools_evaluate
Evaluate JavaScript in the Connected tab (optionally a specific iframe). Optional pin binds the element as `el`. Isolated world auto-falls back to CDP main world on CSP unsafe-eval errors.
| Parameter | Type | Description |
|---|---|---|
expression * | string | JS expression. When pin is set, the pinned element is available as `el`. |
awaitPromise | boolean | |
frame | Chrome frameId (number) or substring match against frame url/name from browser_snapshot frames list | |
pin | string | Pin id — expression is evaluated with `el` bound to that node |
world | string | Default isolated; main uses CDP Runtime.evaluate |
devtools_get_box_model
Get box model / bounding rect for a ref, pin, or CSS selector.
| Parameter | Type | Description |
|---|---|---|
pin | string | |
ref | string | |
selector | string |
devtools_get_computed_style
Get computed styles for a ref, pin, or CSS selector.
| Parameter | Type | Description |
|---|---|---|
pin | string | |
properties | array | |
ref | string | |
selector | string |
devtools_cookies
Get, set, or clear cookies for the Connected origin.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
cookie | object |
devtools_storage
Read/write localStorage or sessionStorage on the Connected origin.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
store * | string | |
key | string | |
value | string |
devtools_cdp
Raw allowlisted CDP command on the Connected tab. Domains include Runtime/Network/DOM/Page/Target (read-mostly). Mutating Target/Browser methods are denied.
| Parameter | Type | Description |
|---|---|---|
method * | string | CDP method, e.g. Runtime.evaluate or Target.getTargets |
params | object |