Branchwell

Become a Pro / website · becomeapro.ai / content / lessons / knowledge-work / using-ai / what-is-computer-use.mdx

1---
2title: "What computer-use agents can do, and how to run them safely"
3description: "How AI agents see the screen, click and type, which jobs they're good at today, and the guardrails to put in place first."
4level: Beginner
5minutes: 8
6updated: 2026-12-03
7order: 1
8sources:
9 - https://github.com/microsoft/playwright-mcp
10 - https://code.claude.com/docs/en/computer-use
11 - https://code.claude.com/docs/en/chrome
12 - https://support.claude.com/en/articles/14128542
13---
14
15A computer-use agent is an AI model that operates a computer the way you do. It looks at the screen, decides where to click or what to type, and repeats until the task is done. Because it works through the same interface you use, it can handle apps and websites that have no API at all.
16
17## How it works
18
19Each step is a loop:
20
211. The agent looks at the current state of the screen or the web page.
222. The model decides on the next action, such as clicking a button, typing into a field or scrolling.
233. The action runs, and the agent looks again to see what changed.
24
25The loop keeps going until the agent decides the task is finished, gets stuck, or reaches a point where it should ask you.
26
27<Diagram caption="Every computer-use agent runs the same loop: look, decide, act, then look again.">
28 <svg viewBox="0 0 600 240" role="img" aria-label="A circular loop of three boxes: look at the screen, decide the next action, run the action, with an exit to done or ask you">
29 <rect x="40" y="30" width="160" height="56" rx="10" fill="none" stroke="currentColor" strokeWidth="2" />
30 <text x="120" y="63" fontSize="16" textAnchor="middle" fill="currentColor">Look</text>
31 <rect x="220" y="150" width="160" height="56" rx="10" fill="none" stroke="currentColor" strokeWidth="2" />
32 <text x="300" y="183" fontSize="16" textAnchor="middle" fill="currentColor">Decide</text>
33 <rect x="400" y="30" width="160" height="56" rx="10" fill="none" stroke="currentColor" strokeWidth="2" />
34 <text x="480" y="63" fontSize="16" textAnchor="middle" fill="currentColor">Act</text>
35 <line x1="120" y1="86" x2="230" y2="150" stroke="currentColor" strokeWidth="2" />
36 <line x1="370" y1="150" x2="480" y2="86" stroke="currentColor" strokeWidth="2" />
37 <line x1="400" y1="58" x2="200" y2="58" stroke="currentColor" strokeWidth="2" strokeDasharray="6 5" />
38 <text x="300" y="48" fontSize="14" textAnchor="middle" fill="currentColor">see what changed</text>
39 <rect x="420" y="160" width="150" height="40" rx="8" className="soft" stroke="currentColor" strokeWidth="2" />
40 <text x="495" y="185" fontSize="14" textAnchor="middle" fill="currentColor">Done, or ask you</text>
41 </svg>
42</Diagram>
43
44## Two ways an agent can see
45
46Agents read the screen in one of two ways, and the difference shows up in speed and reliability.
47
48- **Screenshots.** The model gets a picture of the screen and works out where to click from pixels. This works with any app, including desktop software, but it needs a model that's good at reading images, and a busy screen can trip it up.
49- **The page's structure.** For web pages, a tool like Playwright MCP gives the model the page's accessibility tree: a text list of the buttons, links and fields on the page, each with a label. The model picks an element by its reference instead of guessing coordinates, which is faster and more predictable. It only works inside a browser.
50
51For anything in a browser, start with the structured approach. Use screenshot-based agents for desktop apps or pages where the structure is missing or misleading.
52
53## What it's good at today
54
55- Filling in forms with data from a spreadsheet or document
56- Clicking through admin dashboards to collect or change settings
57- Testing your own web app the way a user would
58- Repetitive research, like checking the same detail across many sites
59
60It's slower than an API and can misread a page, so it fits jobs where a person would otherwise do the clicking. If a task has an API or a command-line tool, use that instead.
61
62## Guardrails before you start
63
64<Callout type="warning">
65An agent can click anything you can. Treat it like a new assistant on their first day, not like a script.
66</Callout>
67
68<Steps>
69 <Step title="Use a separate browser profile or a VM">
70 Keep it away from your personal email, banking and password manager. A fresh profile or a virtual machine limits what a mistake can reach.
71 </Step>
72 <Step title="Stay in the loop on anything irreversible">
73 Have it stop and ask before purchases, deletions or sending messages. Most agent tools let you approve actions one at a time; keep that on until you trust the task.
74 </Step>
75 <Step title="Watch for instructions on the page">
76 Web pages can contain text aimed at the agent, a trick called prompt injection. Tell it to follow only your instructions, never the page's, and keep it off sites you don't trust.
77 </Step>
78 <Step title="Start small and watch the first runs">
79 Give it one short, well-defined task and watch it work. Widen the scope only once it gets that right every time.
80 </Step>
81</Steps>
82
83## Where you'll find it
84
85You don't need a special product to try this. Several tools you may already use include it:
86
87- **Claude Code computer use.** A built-in MCP server called `computer-use` lets Claude open apps, click, type and take screenshots on a Mac. It is a research preview for Pro, Max and Ultra plans, off until you enable it in `/mcp`, and Claude asks you to approve each app it wants to control in a session. Press `Esc` anywhere to stop it. The Claude desktop app offers the same thing on macOS and Windows.
88- **Claude in Chrome.** A browser extension that Claude Code can drive with `claude --chrome`. It uses the browser you are signed in to, which is powerful and is also a reason to be careful with it.
89- **Playwright MCP.** A free server that gives any MCP-capable agent its own browser, driven through the page structure. It is the safest place to start because it can run with a clean, empty profile.
90
91Claude Code tries the most precise tool first: an MCP server or a command if one exists, then the browser, and screen control only for what nothing else can reach.
92
93## Try it
94
95The quickest way to see this for yourself is to give a coding agent a browser. [Let Claude Code drive a browser with Playwright MCP](/knowledge-work/using-ai/playwright-mcp-claude-code) walks through the setup in about ten minutes.