How to use Cursor Computer Use
By Flavio
Tagged: AI
Use Cursor Computer Use to test desktop apps and iOS Simulator flows, reproduce UI bugs, and verify fixes with clear prompts and expected results.
Cursor can click and type inside desktop apps, including the iOS Simulator shown in its Computer Use announcement. That means you can ask an agent to build a feature, open the app, and test it through the real interface instead of stopping at a green build.
A Save button can compile without a single warning and still save an empty string, duplicate the entry, or do nothing when you click it. Letting the agent type into the field and press the button catches those bugs right away.
Let’s walk through a prompt workflow you can try on your own project, using a small notes app as the example.
What Computer Use does
Computer Use lets the Cursor agent see what’s on screen, click controls, and type into fields. The agent can pick it automatically when a task calls for UI interaction, or you can turn it on yourself by mentioning Computer Use in your prompt.
It works best when you combine it with the coding tools the agent already has. It can read your source, edit a file, rebuild the app, and then click through the result to see if the change worked.
Cursor’s Computer Use is built directly into the agent. If you use other coding agents, agent-desktop is a standalone CLI that reads the accessibility tree and acts on stable refs, and terminal-mac lets you run a separate Mac guest inside your terminal.
Say you want to verify that a saved note is still there after a restart. You can ask for the whole sequence in one prompt:
Stopping at a screenshot right after clicking Save only shows the UI state at that second. Reopening the app checks whether the note was saved to storage.
Update Cursor and select Computer Use
Grab the latest build from Cursor’s official download page and open your project.
Start an Agent conversation, type @ in the prompt box, and pick Computer Use from the dropdown menu. Wherever you see @Computer Use in the prompts below, select it from that menu rather than typing it as plain text so the tool attaches to your request.
Before giving the agent a real job, try a quick read-only check to confirm it can see the right window:
@Computer Use
Inspect the notes app that is already open.
Tell me which window you are looking at and what controls are visible.
Do not edit the source or interact with the app yet.
If Computer Use doesn’t show up in the @ menu after you update, check Cursor’s current availability info before going further.
Allow the macOS permissions
On macOS, Computer Use needs two permissions: Accessibility to click and type, and Screen Recording to see what’s on screen.
When Cursor pops up the Enable Computer Use window, follow the prompts there. If you’d rather check them by hand, open System Settings → Privacy & Security and look under both sections.
Make sure you enable them for Cursor Computer Use, the helper app listed in the prompt, instead of your terminal or another app. If macOS asks you to reopen the helper after flipping the toggles, do that and run the small check above one more time.
Choose a small flow to test
For your first run, point Cursor at a development build with throwaway data.
Our example notes app just has a text field, a Save button, and a list of saved notes. Any form in your own project works fine here as long as the outcome is obvious on screen. If you’re testing an iOS app, get it building and running in the Xcode Simulator first so you aren’t troubleshooting Xcode and Computer Use at the same time.
Before you send the prompt, jot down what you expect each step to do:
| Action | Expected result |
|---|---|
Save Buy coffee | One note appears with that text |
| Save an empty field | No empty note is added |
| Save only spaces | No blank note is added |
| Reopen the app | The saved note is still there |
Having that checklist upfront gives the agent a clear pass/fail bar for every step. Skip the reopen check if your demo only keeps notes in memory.
Ask Cursor to use the app
Tell the agent the exact app name and the steps to click through. Asking it to “test everything” usually gets you a vague summary instead of reproducible bugs.
Here’s a prompt you can start with:
@Computer Use
Test the development notes app in iOS Simulator.
Use the Simulator that is already open.
Enter Buy coffee and press Save.
Check that exactly one note appears with that text.
Then try saving an empty field and a field containing only spaces.
Neither should add a note.
Do not edit code yet. Report what you observed for each case,
and include a screenshot of any failure.
Use only test data. Do not interact with other apps or accounts.
If you’re testing a Mac app instead of an iOS app, swap the Simulator reference for your app’s name.
Use this first pass just to see what happens. You want to know which exact action failed and what ended up on screen, like “a blank note appeared after saving spaces” rather than a fuzzy guess like “there might be a validation issue.” That gives you something concrete to fix in the next step.
Fix a failure and repeat the same steps
Say that first run caught a bug where saving a string of spaces adds a blank note.
Now you can ask Cursor to find the code, fix that specific case, and rerun the flow:
Fix the whitespace-only note bug you reproduced.
Keep the change focused on note validation.
Preserve the text of valid notes.
Run the relevant tests and build the app.
Then use Computer Use on the changed build to repeat the same cases:
Buy coffee, an empty field, and a field containing only spaces.
Report the observed result of each case.
If the changed build cannot be launched, report that blocker.
Make sure the prompt tells the agent to test the changed build, so it rebuilds and relaunches the app instead of clicking around in the old copy that’s still open.
If your app saves notes to disk, run the persistence check in a separate prompt:
Save a note named Check persistence.
Close and reopen this development app, then check whether the note remains.
Do not reset its data or reinstall it during this check.
Leave the app’s stored data alone during that check so you’re testing the real reopen behavior.
Review the result
Ask Cursor to separate what it saw from anything it couldn’t run. A good summary tells you which app and build it tested, lists every case it tried with the result, and leaves anything it couldn’t finish marked as blocked.
You can ask for a report in this format:
For each test, report:
- the action you performed
- the expected result
- the result you observed
- whether it passed, failed, or was blocked
Include the relevant screenshot for a failure.
List any cases you did not run.
Once the UI pass looks good, still read the diff yourself to make sure the fix didn’t touch anything unrelated.
Keep your automated tests for the core logic you want to verify on every change. Unit tests are much faster for throwing dozens of edge cases at note validation, while Computer Use checks that the real text field and Save button are wired up to that logic. If you want to dig deeper into picking the right test for each bug, grab the free Testing, Debugging & CI/CD Handbook.
Browser, local desktop, or cloud agent?
Cursor gives you a few different ways to drive a running app, depending on where it lives:
| Your task | Where to start |
|---|---|
| Test a website’s form and inspect console errors | Cursor’s built-in Browser |
| Interact with a native desktop app or iOS Simulator | Computer Use |
| Let an agent test in Cursor’s remote environment | Cloud Agents |
| Run a cloud agent’s tools on hardware you own | Self-hosted machines |
For web apps, the built-in Browser tools are usually a better fit because they give the agent console and network inspection too.
Cloud Agents run in their own desktop inside a remote VM, completely separate from what’s open on your laptop. You can also run a self-hosted worker on macOS or Linux with the --computer-use flag if you want cloud agents running on your own hardware. I covered that setup in running Cursor cloud agents on your own Mac mini, though you don’t need any of that for the local workflow here.
How I would use it
Computer Use makes the most sense right after you change a user-facing flow, especially one that spans a few screens. In a notes app, that’s the save-and-reopen check we just walked through. In a settings window, it’s flipping a preference, closing the window, and opening it again to confirm the value stuck.
Keep each task small enough that you can review the result in a minute. Get the agent reliably clicking through one flow before you ask it to chain five together.
If a test has to quit and relaunch apps or move windows around, run it on a separate Mac or a VM so the agent isn’t fighting you for the mouse. That’s already how I keep Mac app testing from interrupting my work.
Skip Computer Use for pure functions or API responses, since direct tests are faster and cleaner there. Save it for the things you can only verify with the real interface on screen, and always ask the agent to list the exact steps it ran.
Want me to talk about your product? You can sponsor this site.
Related posts about ai: