## Introduction
**Computer Use** is an open-source [MCP](https://modelcontextprotocol.io) server — a computer-use agent (CUA) backend — that lets any coding agent use your computer the way a person does. It reads the screen through accessibility trees, clicks and types **in the background** so your mouse stays yours, shows an agent pointer where it is working, zooms in on small text, and drives tabs in your signed-in Chrome — on **macOS, Windows and Linux**.
**Works with Claude Code, Codex, Cursor and [MT Code](https://munimtech.com/mtcode)**, or any other MCP client, with any model — no vision model is required for interaction.
**Built by [Munim Technologies](https://munimtech.com/munim-computer-use)** as the Computer Use engine of MT Code, and published here on its own.
## Table of contents
- [Quick start](#quick-start)
- [Capability matrix](#capability-matrix)
- [Benchmarks](#benchmarks)
- [Why it works well](#why-it-works-well)
- [Works alongside you](#works-alongside-you)
- [Apps and sites the agent may use](#apps-and-sites-the-agent-may-use)
- [Tools](#tools-41)
- [Repository layout](#repository-layout)
- [Environment flags](#environment-flags)
- [Embedding in an app](#embedding-in-an-app)
- [Prompting your agent](#prompting-your-agent)
- [Contributing](#contributing)
- [Credits and license](#credits-and-license)
## Quick start
1. Download the latest binary for your platform from [Releases](https://github.com/munimtechnologies/munim-computer-use/releases/latest) (`munim-computer-use-macos-universal.zip`, `munim-computer-use-windows-x64.zip`) or [build from source](#build-from-source).
2. Put it somewhere on your `PATH` (`/usr/local/bin/munim-computer-use`, or `%LOCALAPPDATA%\Programs\munim-computer-use\munim-computer-use.exe`).
3. macOS only: run `munim-computer-use request-permissions` once to be prompted for Accessibility and Screen Recording.
4. Register it with your agent:
```sh
# Claude Code — fastest: the npm launcher fetches the signed binary on first run.
# Add `--scope user` to register it for every project instead of just this one.
claude mcp add munim-computer-use -- npx -y munim-computer-use
# or point at a downloaded binary
claude mcp add munim-computer-use -- /usr/local/bin/munim-computer-use
```
```sh
# Codex — writes the entry below into ~/.codex/config.toml for you (needs a Codex CLI
# with `codex mcp`; check with `codex mcp --help`)
codex mcp add munim-computer-use -- npx -y munim-computer-use
```
```toml
# Codex — ~/.codex/config.toml, if you would rather edit it yourself
[mcp_servers.munim-computer-use]
command = "npx"
args = ["-y", "munim-computer-use"]
```
```sh
# Cursor — no MCP subcommand in its CLI, so write the config. ~/.cursor/mcp.json applies
# to every project; .cursor/mcp.json in a repo applies to that one.
mkdir -p ~/.cursor && [ -s ~/.cursor/mcp.json ] || echo '{}' > ~/.cursor/mcp.json
jq '.mcpServers["munim-computer-use"] = {"command":"npx","args":["-y","munim-computer-use"]}' \
~/.cursor/mcp.json > ~/.cursor/mcp.json.tmp && mv ~/.cursor/mcp.json.tmp ~/.cursor/mcp.json
```
```json
// Cursor — the entry that produces, in .cursor/mcp.json
{ "mcpServers": { "munim-computer-use": { "command": "npx", "args": ["-y", "munim-computer-use"] } } }
```
Then ask: _"Open Safari, find the cheapest flight to Denver on Tuesday and put it in a note."_ The agent reads the UI with `get_app_state`, acts by element id, and verifies with `screenshot`.
## Capability matrix
**Munim Computer Use** is the highlighted first column; the others are the computer-use servers people reach for. each cell comes from that project's own README or docs in September and October 2026 (sources under [Credits and license](#credits-and-license)). ✅ present · ❌ absent or not documented · ⚠️ partial.
| Capability | **Munim Computer Use** | Cua Driver | Codex Computer Use | OpenAI Agents API | Anthropic reference demo | Windows-MCP | MacOS-MCP | open-computer-use | computer-use-mcp (zavora) | Notes |
| ---------------------------------------------- | ---------------------- | ----------- | ------------------ | ----------------- | ------------------------ | ----------- | --------- | ----------------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| macOS | **✅** | ✅ | ✅ | n/a | ❌ | ❌ | ✅ | ✅ | ✅ | The Anthropic demo drives a Linux desktop inside Docker, not your machine. The OpenAI Agents API (September 2026) runs a browser OpenAI hosts, so it never drives your machine either. |
| Windows | **✅** | ✅ | ✅ | n/a | ❌ | ✅ | ❌ | ✅ | ✅ | Windows-MCP is Windows only; MacOS-MCP is macOS only. |
| Linux | **✅** | ✅ | ❌ | n/a | ✅ (sandbox) | ❌ | ❌ | ✅ | ✅ | Munim Computer Use uses AT-SPI + X11; native Wayland apps get element actions but not coordinate clicks. |
| Accessibility tree with element ids | **✅** | ✅ | ⚠️ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | Codex reads the accessibility tree first on macOS and works from screenshots on Windows; the Agents API and the Anthropic demo are screenshot-driven. Ids let the agent press _the button_ instead of a pixel. |
| Background input (your mouse never moves) | **✅** | ✅ | ⚠️ | n/a | n/a | ❌ | ❌ | ❌ | ❌ | Munim Computer Use addresses events to the target window: always on macOS (SkyLight and per-process events), for UI Automation patterns and classic Win32 controls on Windows; other Windows UI and all Linux pointer input (XTEST) still move the real pointer. Codex works in the background on macOS with cursors of its own, and takes over the pointer on Windows. Cua Driver delivers in the background by default and falls back to the foreground when that does not land. The other servers in this table drive the real cursor. |
| Agent pointer overlay | **✅** | ✅ | ✅ | ❌ | ❌ | ⚠️ | ❌ | ❌ | ❌ | Windows-MCP flashes a border around captures; Codex and Cua Driver draw their own cursor on your screen. |
| Zoom into a region at full resolution | **✅** | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | Anthropic's toolset has `zoom`; here it is a tool on every platform. |
| Screenshots carry screen-coordinate mapping | **✅** | ⚠️ | n/a | n/a | n/a | ❌ | ❌ | ❌ | ❌ | Origin and pixels-per-point in every capture, so clicks from Retina or downscaled images land. |
| Hover, wait, label query | **✅** | ⚠️ | ⚠️ | ❌ | ⚠️ | ✅ | ⚠️ | ❌ | ⚠️ | Windows-MCP has Wait/WaitFor; MacOS-MCP has Wait; Anthropic has `wait`/`mouse_move`. |
| Your signed-in Chrome, own tab group or yours | **✅** | ⚠️ | ⚠️ | ❌ | ❌ | ⚠️ | ❌ | ❌ | ❌ | Codex uses its in-app browser; Cua Driver attaches to a browser over CDP; Windows-MCP reads the DOM of open browsers. Munim Computer Use opens its own labelled tab group in your real Chrome, and can also take over a tab you already have open when you ask it to. |
| Act and observe in one call | **✅** | ✅ | n/a | n/a | ✅ | ❌ | ❌ | ❌ | ❌ | `return_state` on any action appends the fresh accessibility tree or page snapshot, so one call acts and checks. Cua Driver's `run_steps` runs several actions and reports what changed. The Anthropic demo returns a screenshot after each action; Codex and the Agents API run the loop themselves. |
| Several actions in one call | **✅** | ✅ | n/a | n/a | ❌ | ⚠️ | ❌ | ❌ | ✅ | Cua Driver and computer-use-mcp (zavora) run a list of steps in one call with `run_steps`; Windows-MCP's `MultiSelect` and `MultiEdit` act on several elements at once. Munim Computer Use's `run_steps` does the same, checks the whole list before running any of it, and stops at the first failure. |
| Read a page's text in a signed-in tab | **✅** | ⚠️ | ❌ | ❌ | ❌ | ⚠️ | ❌ | ❌ | ❌ | `browser_read` returns the page as text with headings, in chunks, with a `query` filter, from a background tab. Windows-MCP scrapes pages. |
| Sign-in without the model seeing the password | **✅** | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | `browser_request_credentials` opens a Chrome window naming the site's real origin; what the user types goes into the page and never into the conversation. The Agents API hands sign-in to the developer's app the same way. Desktop password fields refuse typing by default. |
| Per-app and per-site allow / ask / block rules | **✅** | ❌ | ⚠️ | ⚠️ | ❌ | ❌ | ❌ | ❌ | ❌ | A policy file the user controls; `ask` shows an approval prompt once per task. Codex asks before each new app and keeps an "Always allow" list; the Agents API asks the developer's app before each new website. |
| Works with any MCP client | **✅** | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | Codex Computer Use is Codex only; the Anthropic demo is Claude only. |
| Identical tool surface on every platform | **✅** | ⚠️ | n/a | n/a | n/a | n/a | n/a | ⚠️ | ✅ | 41 tools with byte-identical schemas across the Swift and Rust servers. Cua Driver keeps shared parameters in step with a CI check, with a few tools on one platform only. |
| Prebuilt signed binaries + npm launcher | **✅** | ✅ (script) | ✅ | n/a | ❌ | ❌ | ❌ | ✅ (npm) | ✅ (npm) | macOS universal (Developer ID signed) and Windows x64 on Releases. |
| Open source | **✅ Apache-2.0** | ✅ MIT | ❌ | ❌ | ✅ | ✅ MIT | ✅ MIT | ✅ MIT | ✅ MIT | |
Also looked at: [mediar-ai/mcp-server-macos-use](https://github.com/mediar-ai/mcp-server-macos-use) (macOS, accessibility, real input), [deploymenttheory/windows-mcp-server](https://github.com/deploymenttheory/windows-mcp-server) (Windows, UIA Invoke patterns, WaitFor), [nuphus-mcp](https://github.com/mrpulor-gh/nuphus-mcp) (OCR + bring-your-own vision model, CDP Chrome), [computer-control-mcp](https://github.com/AB498/computer-control-mcp) (PyAutoGUI + OCR), and [microsoft/playwright-mcp](https://github.com/microsoft/playwright-mcp) (browser only). Corrections welcome — open an issue with a link.
The chart counts the table above (`n/a` cells are left out), so it shares the table's bias: we picked the rows.
## Benchmarks
Reading a window is the step an agent repeats most, so every server we could run reads the same file manager window on each system as the folder grows from 100 to 20,000 files: File Explorer on Windows, Finder on macOS and Thunar on Linux. Each one ran its latest release on 3 December 2026. munim-computer-use is the fastest at every folder size on all three, and of the servers whose read lists the files, it returns the fewest tokens on all three.
### Windows 11 · File Explorer
| Server | Read tool | 100 files | 1,000 | 5,000 | 20,000 | Tokens per read (≈) | Files listed |
| ------ | --------- | --------- | ----- | ----- | ------ | ------------------- | ------------ |
| **munim-computer-use 0.16.5** | `get_app_state` | **0.13 s** | **0.13 s** | **0.13 s** | **0.13 s** | **2.9–3.0K** | 31 |
| munim-computer-use 0.16.4 | `get_app_state` | 0.17 s | 0.17 s | 0.16 s | 0.15 s | 2.9–3.0K | 31 |
| Cua Driver 0.73.0 | `get_window_state`, `include_screenshot: false` | 0.20 s | 0.23 s | 0.22 s | 0.20 s | 5.9K | 31 |
| Windows-MCP 0.9.1 | `Snapshot` | 0.29 s | 0.30 s | 0.29 s | 0.27 s | 1.0K | 0 |
| computer-use-mcp 7.8.0 (zavora) | `get_ui_tree` (`COMPUTER_USE_PROFILE=full`) | 0.67 s | 0.66 s | 0.62 s | 0.59 s | 12.5K | 31 |
| open-computer-use 1.1.6 | `get_app_state`, `include_screenshot: false` | 4.51 s | 4.34 s | 4.06 s | 3.81 s | 8.8K | 31 |
A Windows 11 laptop (Ryzen 9 5900HX, build 26200). 0.16.5 reads through the `CUIAutomation8` client instead of the Windows 7 `CUIAutomation`; the one request that fetches the window's tree is nearly all of a read, and it is about a fifth faster that way. On a second Windows 11 PC (Core i5-1250P, build 26200), measured the same way, 0.16.5 read in 0.10–0.12 s, 0.16.4 in 0.13–0.18 s and Cua Driver 0.73.0 in 0.12–0.18 s. Windows-MCP 0.9.1 is much faster than 0.8.8 was (about 15 s), but its `Snapshot` leaves the File Explorer window out: no file is listed at any size.
### macOS 27 · Finder
| Server | Read tool | 100 files | 1,000 | 5,000 | 20,000 | Tokens per read (≈) | Files listed |
| ------ | --------- | --------- | ----- | ----- | ------ | ------------------- | ------------ |
| **munim-computer-use 0.16.4** | `get_app_state`, `window: 0` | **0.04 s** | **0.05 s** | **0.06 s** | **0.12 s** | **1.0K** | 18 |
| Cua Driver 0.73.0 | `get_window_state`, `include_screenshot: false` | 0.11 s | 0.11 s | 0.12 s | 0.20 s | 2.3K | 6 |
| computer-use-mcp 7.8.0 (zavora) | `get_ui_tree` (`COMPUTER_USE_PROFILE=full`) | 1.01 s | 1.01 s | 1.05 s | 1.12 s | 22.4K | 38 |
| open-computer-use 1.1.6 | `get_app_state`, `include_screenshot: false` | 1.30 s | 11.92 s | 18.38 s | 15.02 s | 2.4–20.2K | 951 |
| MacOS-MCP 0.4.7 | `Snapshot`, `use_vision: false` | 1.59 s | 1.91 s | 13.89 s | 63.61 s | 1.2–2.8K | 0 |
A MacBook Air (M1) on macOS 27.2.1. 0.16.5 changes only the Windows backend, so 0.16.4 is the version measured here. munim reads one window here (`window: 0`), as the others do; without it, `get_app_state` lists every Finder window. Cua Driver ran with `mcp --direct` and open-computer-use with `OPEN_COMPUTER_USE_DISABLE_APP_AGENT_PROXY=1`, their documented switches for running inside the process that holds the permissions. Cua Driver's read lists 6 of the 18 files in view; zavora and open-computer-use list rows scrolled out of view too. open-computer-use and MacOS-MCP are 10 to 500 times slower, so they were timed one server at a time (the method below, without the turn-taking); MacOS-MCP's reads listed no files this time.
### Linux · Thunar
| Server | Read tool | 100 files | 1,000 | 5,000 | 20,000 | Tokens per read (≈) | Files listed |
| ------ | --------- | --------- | ----- | ----- | ------ | ------------------- | ------------ |
| **munim-computer-use 0.16.4** | `get_app_state` | **0.25 s** | **0.25 s** | **0.34 s** | **0.27 s** | **1.3K** | 33 |
| Cua Driver 0.73.0 | `get_window_state`, `include_screenshot: false` | 0.82 s | 0.34 s | 0.38 s | 0.32 s | 2.4–5.7K | 0 |
| computer-use-mcp 7.8.0 (zavora) | `get_ui_tree` (`COMPUTER_USE_PROFILE=full`) | 1.16 s | 1.09 s | 1.15 s | 1.06 s | 28.6K | 0 |
| open-computer-use 1.1.6 | `get_app_state`, `include_screenshot: false` | 4.55 s | 10.29 s | 11.06 s | 9.88 s | 26.1–44.0K | 33 |
Ubuntu in WSL 2 on the Windows laptop above, X11 (Xvfb, 1920×1080) with bspwm and AT-SPI. Thunar's default icon view tells assistive technology nothing about its files, so every server read its details view. 0.16.5 changes only the Windows backend, so 0.16.4 is the version measured here. Cua Driver's read lists files only at 100 files (24 of them), and zavora's tree lists none of them.
### How it was measured
The machines are shared and often busy, so a server timed alone could look slow or fast depending on what else ran at that moment. For each folder size a fresh file manager window was opened in front and every server was started once and kept running, called over stdio with its own read tool (text only where the tool has a switch for it). After one warm-up call each, the servers took turns: each pass calls every server once, in a newly shuffled order, so a busy moment lands on all of them alike. Each time is the median of 12 passes (10 on Linux), and the CPU load was logged with every pass. Tokens are estimates at 4 characters per token. "Files listed" counts the folder's file names in the 1,000-file read. [Terminator](https://github.com/mediar-ai/terminator) was left out: its `get_window_tree` picks the first `explorer` process, which is the taskbar, and it takes no pid. The scripts are in a scratch kit, not this repository; ask in an issue if you want them.
### Acting
On the same Windows PC: the five clicks of 1 + 2 = on Calculator (clear, 1, +, 2, =), each a separate call by element id, after one read. Median of 3 runs.
| Server | Five clicks | Per click |
| ----------------------------- | ----------- | ---------- |
| **munim-computer-use 0.16.5** | **1.74 s** | **0.35 s** |
| Cua Driver 0.73.0 | 2.13 s | 0.43 s |
Most of a click is the agent pointer flying to the target so you can see where the agent acts. `run_steps` sends all five in one call.
### Every Windows release
The same window read by every Windows release, from the release binaries, in two rounds of all 17 with Windows-MCP in each round, plus 0.8.0 measured against 0.7.3 the same way, on 27 October 2026 (an earlier run than the ones above, on a smaller window, so the times differ; Windows reads did not change from 0.8.0 to 0.16.4, and 0.16.5 is the next step, above). 0.7.0 is where `get_app_state` started reading only what is on screen and fetching each element's attributes in one request; 0.8.0 fetches the whole window in one request instead of one per element, with the same output.
The numbers
| Release | Read time (median) | Characters | Tokens (≈) |
| ------- | ------------------ | ---------- | ---------- |
| 0.2.0 | 0.40 s | 9,860 | 2.5K |
| 0.3.0 | 0.43 s | 9,860 | 2.5K |
| 0.3.1 | 0.38 s | 9,860 | 2.5K |
| 0.4.0 | 0.38 s | 9,860 | 2.5K |
| 0.4.1 | 0.38 s | 9,860 | 2.5K |
| 0.4.2 | 0.39 s | 9,860 | 2.5K |
| 0.4.3 | 0.40 s | 9,860 | 2.5K |
| 0.4.4 | 0.38 s | 9,860 | 2.5K |
| 0.5.0 | 0.38 s | 9,860 | 2.5K |
| 0.5.1 | 0.37 s | 9,860 | 2.5K |
| 0.5.2 | 0.43 s | 9,860 | 2.5K |
| 0.6.0 | 0.37 s | 9,860 | 2.5K |
| 0.6.1 | 0.41 s | 9,860 | 2.5K |
| 0.7.0 | 0.23 s | 7,499 | 1.9K |
| 0.7.1 | 0.28 s | 7,499 | 1.9K |
| 0.7.2 | 0.25 s | 7,520 | 1.9K |
| 0.7.3 | 0.25 s | 7,520 | 1.9K |
| 0.8.0 | 0.16 s | 7,515 | 1.9K |
| Windows-MCP 0.8.5 `Snapshot` | 0.75 s | 14,929 | 3.7K |
`node scripts/readme-charts.mjs` redraws the charts; the coverage chart is counted from the capability matrix.
## Why it works well
- **Accessibility first, pixels second.** `get_app_state` returns the app's accessibility tree with stable element ids, so the agent presses _the button_ instead of guessing at a coordinate. It costs a fraction of the tokens of a screenshot and it is what scores highest on OSWorld-style tasks. Screenshots are for verifying and for content the tree cannot describe.
- **What is on screen, fast.** `get_app_state` lists what is in view: a list or table gives its visible rows, and anything scrolled away is skipped and counted (`offscreen: true` lists it too). Attributes are read in one request per element, and on Windows the whole window comes back in a single request. Rows of a list print one to a line. A Finder window reads in about 0.05 s, File Explorer in about 0.13 s and Thunar in about 0.25 s, faster than any other server we measured on each system (see [Benchmarks](#benchmarks)).
- **Dialogs first.** While a sheet, alert or popover blocks a window, only its controls are listed, with a note saying so, so the agent answers the dialog instead of clicking behind it.
- **Electron and Chromium apps (macOS).** Slack, VS Code, Discord and other Chromium-based apps expose their tree only to a client that asks; `get_app_state` asks, and says so while a background app is still building it.
- **Text the tree cannot describe.** When an app exposes no labelled controls, its window is read with on-device OCR (Apple Vision on macOS, Windows OCR on Windows) and the text is listed with ids that `click`, `hover`, `right_click` and `drag` accept. The image never leaves the machine. `ocr: "always"` or `"never"` overrides it.
- **Ids that fail instead of misfiring.** Every id is rechecked before an action. If its element is gone, or its role or name changed (a dialog swapped its buttons, a list re-sorted), the action fails with a clear error instead of acting on whatever sits there now.
- **Waits as long as the app takes.** `return_state` waits for the app's accessibility notifications to stop instead of a fixed pause: about 230 ms for a field edit (was 350 ms), and long enough for a sheet to finish sliding in.
- **Background control.** Events are addressed to the target window (SkyLight on macOS, UI Automation patterns and posted window messages on Windows). On macOS the agent never takes your mouse or keyboard; see [Works alongside you](#works-alongside-you) for the exact guarantee on each platform.
- **Pointer overlay, not your pointer.** A soft lavender agent pointer shows where the agent is acting. Your cursor is untouched.
- **Coordinates that land.** Every screenshot and zoom carries its screen origin and pixels-per-point. `zoom` captures any region at full physical resolution.
- **Your browser, your logins.** The Chrome extension gives the agent its own labelled tab group in your signed-in Chrome, and leaves your tabs alone unless you point it at one.
- **Or the tab you already have open.** `browser_list_tabs all=true` shows every tab in the browser and `browser_use_tab` takes one over in place — useful when the page is already signed in or mid-flow and re-opening the URL would throw that away. An adopted tab is not moved into the agent's group, not activated and not reloaded; cleanup releases it rather than closing it, and `browser_release_tab` hands it back early.
- **Hand a tab to the user.** Cleanup, including the one a server runs when it exits, closes the tabs the agent opened. To keep one, such as a form the agent filled in or a page the user asked to see, `browser_release_tab` hands it off: it leaves the agent's group, stays open where it is, and becomes the user's tab. When an agent tab does go away, `browser_list_tabs` lists it for the next hour with who closed it and why (`browser_close_tab`, `browser_close_all_tabs`, a server's exit cleanup, or the user or the page), and so does the error from any call that names it.
- **Tabs the agent's clicks open are the agent's too.** A `target=_blank` link or popup opened by an agent click or key press within 10 seconds joins that task's tabs and group, and its cleanup closes it. A tab opened from an agent tab without a recent agent action stays yours.
- **Parallel tasks, one extension.** Every MCP process gets its own tab group, and one process can run several tasks by passing a stable `session_id` on its browser calls. A task cannot drive or adopt another task's tabs, and cleanup (including a process exiting) closes only its own. Any number of MCP processes share the one extension: the first owns it and the rest go through it, and if the owner exits another takes over without closing anyone's tabs. Tasks share Chrome's cookies and logins, and desktop apps and the clipboard are not isolated.
- **Model-agnostic.** No vision model is required for interaction; local models work too.
- **Look → act → verify.** `hover` for mouse-over menus, `wait` for loads, `query` to find a control by label without reading a whole tree.
- **Act and look in one call.** Pass `return_state: true` to any action (`click`, `type_text`, `set_value`, `browser_click`, `browser_navigate`, …) and the result carries the app's fresh accessibility tree, or the page's current snapshot. Browser actions report readiness separately: a loaded tab is not proof that delayed SPA UI has rendered. Use `wait_for_selector` for an expected visible element (see below). `state_query` narrows the desktop tree the same way `query` does.
- **Several steps, one call.** `run_steps` takes a list like click the field, type, press return and runs it in order, each step with the same checks as a direct call. The whole list is checked before anything runs, the first failing step stops the rest, and the result says what ran and what did not. Put `return_state` on it to see the app after the last step.
- **Pages as text.** `browser_read` returns a page's readable text with its headings, including what is scrolled out of view, from a tab in the background. It comes in chunks you can continue with `offset`, `query` keeps only the matching lines under their heading, and `include_links` lists the links.
- **Frames too.** A support chat, payment form or sign-in box embedded in a page is its own document, often from another site. `browser_snapshot` lists its controls after the page's, marked `(in frame "…")`, and their indices work with `browser_click`, `browser_fill` and `browser_upload_file`; `browser_read` adds each frame's text under a `[frame "…"]` line, and `wait_for_selector` looks inside frames. Your site rules apply to a frame's own site, and `browser_request_credentials` never fills a field inside a frame.
- **See a tab without taking your window.** `browser_screenshot` captures what one of the agent's tabs shows, frames included, while it stays in the background: the tab is not selected, its window is not raised and the screen is not captured, so you keep working in your own tab. `browser_select_tab bring_to_front=true` is the only browser call that takes your window, and it is a last resort.
- **JavaScript dialogs, answered on purpose.** When a page opens an alert, confirm or prompt, `browser_snapshot` shows its type, message and id, and other commands on that tab say a dialog is open instead of timing out. `browser_handle_dialog` accepts or dismisses it, with text for a prompt, in a background tab without the keyboard. A dialog that replaced the one the agent read is refused, and a dialog never counts as an answer on its own.
- **Why a page is broken.** `browser_page_errors` lists the uncaught exceptions and console errors a tab's page has logged since it loaded (as far as Chrome keeps them), and the requests that failed (network errors and HTTP 400 or above) since the agent attached, the latest 50, with URLs stripped of query strings and fragments. Exceptions and console errors are read from Chrome's own record during the call, so the DevTools Runtime domain, which bot checks on signed-in sites look for, is not left on in between. Headers, cookies and bodies are never read, and the tab is not reloaded or shown.
- **Passwords stay out of the conversation.** `browser_request_credentials` asks the user to sign in in a small Chrome window that shows the site's real origin. What they type goes straight into the page's fields and is never returned to the model. If they type into the site itself instead, or the page moves on, the window closes by itself and the agent is told not to ask again. A host app with its own private secret prompt (MT Code's in-thread card, for example) can ask there and pass the file it writes as `value_file`: the field is filled with no Chrome window, and only from folders the host lists in `secretFileDirs`. `browser_snapshot` never shows a password field's value, and on the desktop, typing into password fields is refused by default.
- **Start the app it needs.** `launch_app` opens an installed app that is not running, by the name the system lists it under (Start menu, app launcher or Applications; "calc" is enough for Calculator) or its id, and waits for its first window, then names the running app and pid to read. A running app is reported instead of started twice, several matches are listed instead of guessed, and the user's app rules apply. macOS opens it without bringing it to the front.
- **Dropdowns and hover menus in a page.** Chrome draws a native `