Agents that act
Part 2 · AI meets the web4 minBrowser agents click, type and order. See the page through the accessibility tree they read, and what stops them: a button with no name, a fake dropdown, a CAPTCHA.
- textbox“Search”
- button“”
- link“Cart (0)”
- generic“Size 02 ▾”
- button“Add to cart”
From reading to doing
The agents so far read pages. A browser agent also uses them: it clicks, types, picks from lists and presses buttons, to finish a task for a person.
The task here: “Order the Hario V60 from Bean & Brew, size 02.”
It works the way a person would, one action at a time, and it can only use what it can find on the page.
Why it matters. For an agent, a page is a set of controls. If it cannot find or work one, the task stops there.
Two ways to see a page
An agent can look at a screenshot, a picture of the page, and guess where things are, as a person would.
Or it can read the accessibility tree: the browser’s list of every control, with its kind and its name. Most agents use both.
- Accessibility tree
- The browser’s outline of a page for assistive technology: each part’s role, name and state.
Why it matters. Most agents lean on the accessibility tree, so a page that is clear to assistive technology is clear to them.
Roles and names
Each entry in the tree has a role, what the thing is, and a name, what it is for: button “Add to cart”, textbox “Search”, link “Returns”.
The agent finds its way by these: to add the dripper to the cart, it looks for a button named “Add to cart”.
- Accessible name
- The words a control is known by in the tree: its label, its text, or an aria-label.
Why it matters. A control with the right role and a clear name is one an agent can find without looking at the picture.
A button with no name
The heart beside the product saves it for later. On screen the icon says enough. In the tree it is button “”: a button, called nothing.
An agent has to guess what it does from its position, or click it to find out. Ten unnamed icons in a row, and it is guessing ten times.
A person never notices. The page passed every visual review.
Why it matters. An unnamed icon button is a control an agent can see but not identify. It guesses, or it skips it.
Controls that pretend
The size picker looks like a dropdown, but it is built from plain boxes with a script attached. In the tree it is generic: a box, not a list to choose from.
The agent cannot ask it for its options. It has to click, wait, look, and hope the list that appears is the one it wanted.
Date pickers, star ratings and sliders built the same way cause the same trouble.
Why it matters. Native controls (button, select, input) work for agents by default. Home-made ones work only if built with care.
Doing the task
With names it can trust, the task is a short list: find combobox “Size”, choose 02, press button “Add to cart”, then link “Checkout”.
Each action changes the page, so after each one the agent reads the tree again to see what happened.
Why it matters. Every step of a task is a control the agent has to find, name and work. One weak step loses the whole order.
Walls and hand-backs
At checkout the page asks: “Prove you are human.” A CAPTCHA is built to stop bots, and an honest agent does not try to beat it.
So the agent stops and hands the page back to the person. The same happens at a password or a payment, on purpose.
- CAPTCHA
- A test to tell people from bots: pick the traffic lights, tick the box, type the letters.
Why it matters. A CAPTCHA on a checkout stops every agent, honest or not.
Pages made for agents
Some sites go further and describe their actions directly, so an agent does not have to find its way through the page at all.
A form can be marked as a tool, with a name and a description, in an early browser standard called WebMCP. Few sites use it yet.
Why it matters. The groundwork is the same either way: real controls, clear names, and no wall in front of the task.