Welcome back! In this lesson, you ll give your agent a pair of eyes. We ll add screenshots to the loop from lesson 3 so the model can read a layout, spot a button beyond the viewport, and compare the result with your request. A phone-sized screenshot costs about 333 input tokens, and a simple DOM check confirms when the page is ready. By the end, your agent will be able to look, improve, and check its own work.
Join us over the next few weeks to learn how to build AI agents. Take a look at the source code on github to learn how AI agent harnesses are built. We will be adding more topics and ideas every week. Starting mid-September 2026.