# Tool catalog The full profile advertises 55 tools: 49 browser tools, which reach Chrome through the extension, and 6 native tools the server answers itself -- 3 to set up the extension's native-messaging host and 3 to update the server. The [read-only profile](#read-only-profile) advertises 15. Every tool advertises strict JSON Schema with `additionalProperties: false`. Exact descriptions, argument types, enums, bounds, and defaults come from live `tools/list`; this page explains how the tools fit together rather than duplicating a large schema that could drift from source. ## Sharing the browser: tabs, agents, and `tab_id` One server serves one MCP client, and several agents can share that client: sub-agents, parallel tasks. The server cannot tell them apart. A call that names no tab acts on the session's _current tab_, which every agent on the server shares, so an agent that leans on it is one other agent's `browser_new_tab` away from acting on the wrong page. The initialize result's standard MCP `instructions` tell every client this, and the tools are built around it: - **`tab_id` on every tab-scoped tool.** Each tool whose command acts on one tab takes an optional positive integer `tab_id`; omitted, the call uses the session's current tab. An agent opens its own tab with `browser_new_tab` -- the reply carries its `tab_id` -- and passes it on every call. Naming a tab does not make it current, so it never moves another agent. The set of tools that take it is generated from the command list, not written into each schema, and a test pins it. `browser_select_tab` takes exactly one of `tab_id` or `index`; `browser_close_tab` takes either or neither (neither closes the session's current tab). Both reply with the `tab_id` they acted on. - **`browser_new_tab` opens in the background.** With no `url` it opens `about:blank` rather than Chrome's new-tab page, which the debugger cannot attach to. - **Refs are bound to their tab.** A ref acts on the tab its snapshot came from, whatever tab is current; the snapshot text carries a `tab_id:` line after the title. A call whose own `tab_id` names a different tab than its ref is refused naming both, and a `browser_drag` whose `ref` and `to_ref` came from two tabs is refused. Staleness is per tab: one agent's page navigating leaves every other tab's refs live. - **Ref names are never reused.** New elements are numbered above every ref the server has issued, on any tab, for its whole life. A ref from before a navigation, a reconnect, or a closed tab answers "Unknown element ref" instead of silently naming whatever took its number. - **A tab another session holds is refused**, naming that session. `browser_tabs` lists every tab in the session's window and marks which are the session's (`held`, `current`, `agent`, `opened_by_session`) and which another session holds (`controlled_by_other_session`); its `your_tabs` lists every tab the session holds, in any window. - **`agent` on `browser_new_tab` and `browser_select_tab`.** A short name for the agent doing the work: 1-24 printable characters after trimming; anything else is refused, not cleaned up. Tabs with the same name share one tab group (one per window), titled `AI · `, so the user can tell agents apart; tabs a page opens from them join the same group. Omitted, the tab joins the session's shared group. Any script works: `café` and `研究` are titled as given (before 1.8.1 the extension kept only ASCII, so `café` became `caf` and a name with no ASCII joined the shared group). - **What a command caused is in its reply.** A tab the command's page opened is listed in `opened_tabs` (with its `tab_id`, its URL, and whether it became current), and a file picker the page asked for in `file_chooser`. See [MULTI_SESSION.md](MULTI_SESSION.md#popups) for how a popup is told apart from a tab the user opened. - **`browser_release` when the task is done.** Tabs the session opened are closed; tabs it borrowed from the user are handed back, never closed; the tab group and highlight are removed. Normal tabs the user is looking at and the browser's last tab are never closed (click-spawned popups and popup windows still close unless `keep_open: true` is passed). `tab_id` releases only that tab and any popups transitively opened from it (leaving its opener and sibling tabs of the same agent held). `agent` releases every tab belonging to that agent (and popups opened from them), leaving other agents untouched. Omitting both stands down the whole session. `keep_open: true` hands the tabs it opened to the user instead of closing them. The reply lists what was `closed`, `handed_back`, and `kept_open`; a tab Chrome would not close (it refuses while the user drags a tab) is retried, and one still open after that is handed back and listed in `not_closed`, never reported as closed. An agent that never calls `browser_release` is still cleaned up: when its server exits its tabs are released the same way, and after ten minutes without a command its tabs are stood down -- left open and held, but with the debugger detached and the group greyed -- until its next command. [MULTI_SESSION.md](MULTI_SESSION.md#letting-go) has the full table. Each group is titled with the agent's name when one was given, otherwise with the MCP client's `clientInfo.name` from `initialize` (`AI · `), otherwise `AI CONTROL`. The client name is sent on every command frame, with control and format characters dropped and cut to at most 32 characters. Each group gets a colour no other live group has; the first is pink. The frame and badge drawn on the page and the toolbar badge use the same colour and name, so a page can be matched to its agent at a glance. ### Chrome profiles One server serves every Chrome profile the extension is loaded in -- up to eight, one connection each -- and every call goes to one of them, or to all: | Call | Goes to | | -------------------------------------------------------- | ------------------------------------------------------------------ | | a call naming a `tab_id`, or a `ref` | the profile holding that tab; one never seen is looked for in each | | `browser_new_tab`, `browser_window` with `action: "new"` | `profile` if given, else the profile whose window was last focused | | `browser_window` focus or close with `window_id` | the profile holding that window | | `browser_cookies`, `browser_permission` | `profile` if given, else the current profile | | `browser_tabs`, `browser_windows` | every profile, merged, each entry naming its `profile` | | `browser_release` without `tab_id` | every profile | | anything else naming no tab | the current profile: the one the last routed call went to | `profile` is a profile's name or its account email, without regard to case; one that matches no connected profile is refused with the names that are. With one profile connected, every call goes to it and nothing changes. A profile is called by the name given on the extension's options page, else its signed-in account's email, else a generated name that stays the same. When no window has ever had focus the oldest connection counts as last focused, and a profile whose extension is older than 1.10.0 is called `unnamed` and never counts as focused. Index-addressed calls (`browser_close_tab` by `index`, `browser_group_tabs`) act in the current profile, whose listing the indices come from -- prefer `tab_id`. ## Navigation and capture - `browser_navigate` - `browser_snapshot` - `browser_find` - `browser_back` - `browser_forward` - `browser_reload` - `browser_read` - `browser_screenshot` ### Screenshots: a view for the agent, a presentation for people A model is billed for an image by its pixels, and Claude shrinks any image whose long edge passes 1,568 px to that size before it reads it. So by default `browser_screenshot` returns a **view**: one image pixel per CSS pixel, long edge at most 1,568 -- the detail a model can use. A 1440×900 viewport on a 2x Retina panel comes back as 1440×900 (about 1,700 image tokens), not as 2880×1800, four times the bytes to send for detail that is shrunk away before the model sees it. A full-page view keeps one pixel per CSS pixel, both edges within 8,000 px. - **Zoom for detail.** `ref` crops the screenshot to that element; `x`, `y`, `width` and `height` crop it to a region given in view pixels. A zoom is shown at up to the device's own pixels (long edge still at most 1,568), and its reply says which part of the view it shows and at what magnification. A zoom never moves the page: an element off screen is refused, not scrolled to. - **`purpose: "presentation"`** is for people: the device's own pixels, lossless, saved as a PNG beside `browser_print`'s PDFs. The reply is the file's path, size and dimensions -- the image never enters the model's context. The read-only security profile refuses it, since it writes a file. - `browser_click_at`, `browser_hover` and `browser_drag` read coordinates off the last view, and `browser_box`'s `screenshot_center` is in view pixels too. A zoom or a presentation does not replace the view those coordinates belong to. See [Coordinates, display scale, zoom, and pinch](#coordinates-display-scale-zoom-and-pinch). - A full-page capture of a document past Chrome's 16,384-pixel raster limit holds only its top-left slice. The reply says so, with the document's size and the slice's, in the view's text and in a presentation's reply alike. Files go to `ChromeControlMCP` in the user's Downloads folder, or to the folder named by the `CHROME_CONTROL_MCP_OUTPUT_DIR` environment variable when it is set. `browser_screenshot` hides the control frame, badge, and agent cursor by default so they do not obscure model-facing captures. Set `include_control_overlay: true` for user-facing documentation that should show the exact control presence visible in Chrome. `browser_navigate` and `browser_new_tab` open `http` and `https` URLs only; a bare host such as `example.com` is read as `https://example.com`. `javascript:`, `data:` and `file:` URLs are refused, so an agent cannot make a page out of its own text or open the user's files in a tab. ### A page that has not changed `browser_snapshot` with `if_changed: true` answers in one line when the tab's outline, under the same options, is the same as its last snapshot's: `unchanged since snapshot 3 (41 elements); its refs still work`. When it has changed, the whole outline comes back with a `*` before each ref the earlier snapshot did not have, such as `- button "Undo" *[ref=e57]`. The comparison is per tab and leaves the url and title out, so a clock in the title does not count as a change. The first snapshot of a page, or the first after it navigated, has nothing to compare with and is shown whole and unmarked. It is opt-in: an agent whose earlier snapshot has been dropped from its context has nothing an "unchanged" reply could point to. ### Finding an element without reading the whole page An element's ref comes from the page's outline. `browser_snapshot` gives the whole outline; `browser_find` gives only the lines that match, in the same format and with the same refs, so the usual step -- find the button, then click it -- costs a few hundred bytes instead of the page. Measured on public pages: a whole snapshot of Wikipedia's "Web browser" article is 38 KB, a find 1.3 KB. - **`browser_find`** takes `text` (words in an element's name or value, any case), `query` (the same as a phrase, where a role word such as "button", "link", "field", "checkbox", "tab", "menu" or "heading" becomes a role filter: `"Send message button"`), or `regex`; optionally `role` and `max_results` (1 to 20, default 10). Matches rank exact name first, then a name that starts with the words, a whole word, the words anywhere, and for a phrase how many of its words a name has; elements with refs and elements on screen come first among equals. Each result is followed by the dialog, landmark or article it sits in, and `off-screen` when it is. With no match, the reply names the three closest names on the page. Matching is code, not a model: the same query on the same page always gives the same answer. - A find takes the same capture as a snapshot and installs its refs the same way, so the two are interchangeable for every later call: a ref from either acts on any element tool, belongs to its tab, and is refused after the page navigates. - **`browser_snapshot`** takes `ref` (one element's subtree: a dialog, form, region or list -- landmarks, dialogs, forms, tables, lists and articles carry refs for this), `depth` (levels below the root), `filter` (`"interactive"`: elements with refs, plus headings; `"viewport"`: what is on screen, with a count of the rest) and `max_chars`. Over `max_chars`, the outline is not cut at its end: everything on screen and every landmark and heading line stays, and the largest regions holding none of that collapse to one line each, naming the ref that reads them. With no options a snapshot is the whole outline, as before, up to its 2,000-element capture. - Every outline leaves out repetition: a text line that repeats its parent's name (a link's own label, Chrome's inline text runs), wrappers that hold a single line, and indentation for nesting that is not shown. The line format -- `- role "name" [ref=eN] (flags)` -- is unchanged. - **`browser_read`** returns 30,000 characters at a time by default (`max_chars` up to 200,000); a longer page's reply carries `next_offset`, which `offset` takes to continue, and `total`. `ref` or `selector` reads one element; `mode: "main"` reads the page's main content. The reply stays the JSON it has always been. - An extension older than 1.12.0 does not say where elements are: `filter: "viewport"`, and read's `ref`, `selector` and `mode`, then say to reload the extension at chrome://extensions. Find, the other options and paging work with it. ## Input and page interaction - `browser_click` - `browser_type` - `browser_press_key` - `browser_scroll` - `browser_dialog` - `browser_click_at` - `browser_hover` - `browser_drag` - `browser_select` - `browser_set_value` - `browser_fill_form` - `browser_upload` - `browser_clipboard` - `browser_media` - `browser_js_click` ### What an action changed Every action -- `browser_click`, `browser_click_at`, `browser_js_click`, `browser_type`, `browser_press_key`, `browser_select`, `browser_set_value`, `browser_fill_form`, `browser_hover`, `browser_drag`, `browser_upload`, `browser_scroll`, `browser_navigate`, `browser_back`, `browser_forward` and `browser_reload` -- says in its reply what it changed, as seen by the time the reply went: an object `changes` with - `dom`: `"none"`, `"some"`, `"many"` (5% of the page's elements or more, and at least 20 changes), or `"new document"` when the tab loaded a different page; - `url` and `title`, when they changed; - `dialog`: `{type, message, accepted}` when the page opened one (answered as usual; see `browser_dialog`); - `console_errors`: how many errors the page logged; - `focus`: the role and name of the element that took focus, such as `textbox "Email"`. Each key is there only when its change happened, except `dom`. `"none"` is the useful answer: the page shows nothing new, so there is nothing to read again. The count comes from a mutation counter in each document that skips the extension's own frame, badge and cursor and `style` changes (an animation rewrites those every frame). It runs in the page, so a page can make its own count wrong; it is a hint about the page, not a guarantee. A change the page makes after the reply -- a response that arrives later -- is not in it. **`snapshot: true`** on any of those tools returns the page in the same call: the action's JSON, then a snapshot taken once the page has made no change for 100 ms (at most 1.5 s), whose refs work at once, as a `browser_snapshot`'s would. If the tab's document was replaced between the snapshot and the reply, no snapshot is shown and the reply says to take one. A snapshot that could not be taken is reported as `snapshot_error`; the action still happened. ### Filling a form `browser_fill_form` takes `fields`, an array of `{ref, value}` -- at most 50, every value a string -- and fills them in order: a text field or textarea takes the text, a `` and `showOpenFilePicker` alike -- and the command's reply says so in `file_chooser`. `browser_upload` with `paths` and no `ref` then fills it. This is the only way to reach an input a script creates and clicks without adding it to the document, which no ref could name. A `showOpenFilePicker` answer is a read-only file handle. - **A ref to the input, or to the control that opens it.** Nearly every page hides the real `` behind a styled button, label, or menu item, so either may be named. Hidden inputs are listed in the snapshot as `filechooser "name" [ref=eN] (hidden)`. A control with several file inputs in scope is refused rather than guessed at. The input gets the files and its `input` and `change` events. - **A ref to a drop zone.** An element with no file input near it gets the files as a drag and drop. If it does not accept the drag, the call fails rather than report an upload nobody saw. The reply lists the `files` delivered (name, size and type) and how: `delivered_by` is `input`, `drop` or `picker`. `page_cleared_input: true` means the page's own handler took the files and emptied its input, as many upload widgets do; the files were delivered, and an empty input afterwards is not a failed upload. A file can be up to 2 GiB, or what `CHROME_CONTROL_MCP_UPLOAD_MAX_MB` sets (whole MiB, 1 to 8192); a larger one is refused before any of it is sent, saying so. Since 1.11.0 a file goes to the page a piece at a time, straight from the disk into the page that will use it, so neither this server nor the extension holds it whole. Delivery runs at the pace of Chrome's extension debugger channel -- measured at 2 to 6 MB/s -- so a 390 MB video takes one to three minutes, and the call holds this server meanwhile, as every call does; a client that times calls out sooner than that needs a longer timeout for large files. If the page navigates or the tab is let go while a file is arriving, nothing is assigned and the reply says why. An extension older than 1.11.0 carries at most 16 MiB a file, and a larger file is refused with a note to reload it; files put on a clipboard (`browser_clipboard`) are held whole and stay at 16 MiB. More than one file needs an input or picker that takes several. Folder pickers are not supported yet: a page asking for a folder is told so and nothing is assigned. Outside the command window above nothing is caught, so the user's own clicks on an upload button open the ordinary dialog, even in a tab the assistant holds. The window exists because Chrome cancels a file dialog in a tab that is not the active tab of its window and shows one over the user's work when it is (measured on Chrome 153). See [`SECURITY.md`](SECURITY.md#uploads) for the limits and `CHROME_CONTROL_MCP_UPLOAD_ROOTS`. ### Controls the page wires up itself A real page builds most of its controls out of plain elements: a `
` with a click handler, a card that is clickable because it is styled `cursor: pointer`. None of that reaches the accessibility tree -- those arrive as `generic` with no name and nothing saying they can be acted on -- so a snapshot built from roles alone shows the model scenery where the page has a button. The capture reads three signals out of the DOM snapshot it already takes, and an element that has a box and matches one of them earns a ref with the reason attached: | Flag | What it means | | ------------- | ----------------------------------------------------------------------------------------------- | | `(clickable)` | Chrome's own `isClickable`: a click handler, whether inline or added with `addEventListener` | | `(hoverable)` | the element carries a pointer handler attribute (`onmouseenter`, `onpointerdown`, and the rest) | | `(pointer)` | its computed cursor is `pointer` and its parent's is not | `cursor` is an inherited property, which is why the parent is part of the last rule: a card and everything drawn inside it all compute `pointer`, and the ref belongs on the card. An element laid out to nothing gets no ref however it is wired -- there is nothing to aim at. These flags are descriptive. A ref is a ref: `browser_click`, `browser_hover` and the rest take them exactly as they take a button's. ## Tabs and windows - `browser_tabs` - `browser_select_tab` - `browser_new_tab` - `browser_close_tab` - `browser_group_tabs` - `browser_ungroup_tabs` - `browser_windows` - `browser_window` - `browser_release` ## Inspection and synchronization - `browser_frames` - `browser_wait_for` - `browser_get_value` - `browser_get_attribute` - `browser_box` - `browser_focus` - `browser_reveal` - `browser_console` - `browser_network` ### Cross-origin iframes (OOPIFs) and `frame_id` `browser_frames` lists the main frame, same-origin subframes, and cross-origin out-of-process iframes (OOPIFs) attached to the tab (`frame_id`, `parent_frame_id`, `url`, `origin`, `name`, `cross_origin`, `oopif`). Snapshots also mint `[ref=eN]` handles for `