Skip to content
AgenticAIWiki
  1. Learn
  2. Part 7. Tool design and MCP
  3. Chapter 39

Computer use and browser agents

5 lessons · 24 min

Builds on 33. The tool use loop

The perception and action loop

Full screen
actionscreenshottool_resultModeldecides one actionYour agent loopstep 0 of 30Sandboxed desktopexpenses app, empty form

Swipe to change step

Step 1 of 8. The task: file an expense in a legacy app with no API. The agent works like a person at a screen: look, act, look again. The desktop runs in a sandbox, not on anyone's everyday computer. Model (decides one action). Your agent loop (step 0 of 30). Sandboxed desktop (expenses app, empty form), highlighted. arrow from Model to Your agent loop, labelled action. arrow from Sandboxed desktop to Your agent loop, labelled screenshot. arrow from Your agent loop to Model, labelled tool_result.

In this chapter

  1. 39.1The perception and action loop4 min read
  2. 39.2Screenshots vs accessibility trees vs DOM4 min read
  3. 39.3Reliability: waits, retries and verification5 min read
  4. 39.4Safety: untrusted pages and confirmation steps6 min read
  5. 39.5Worked example: a computer use tool5 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…