An agent that clicks screen coordinates can hit a control that is not there. The click lands on something real, just not the button the task meant, and the run reports a wrong answer.
fastbrowse takes the coordinate out of the loop. The agent can only name a control the page offered it.
What the agent chooses from
At each step the agent sends one request that names an operation and its targets, drawn from the page's indexed buttons, links and fields. A target that is not in the list cannot be chosen. That rules out a guessed region, a control that has since been removed, and a caption that only looks like a button.
A fill decision can also name other offered fields the task needs filled. Those are filled in page order without a request each, and only while the page still shows each one as it was offered; anything else goes back to a full decision.
A read decision can cover a whole list through its observed next-page links. Each page is checked before it is read; a different list or a page that needs an action returns to an ordinary decision. Each read and navigation still spends its own step.
- Hit-testing runs before every input. A control that moved or was covered between the read and the click is caught at the click.
- The list has a size limit per step. On a dense page, a relevance check drops controls the task cannot use. A page that is still too dense offers the controls that fit and scrolls for the rest.
The authorization gate
Every click the model picks is judged before it runs, including links, navigation to a supplied or proposed known address, each Enter press or key chord, and accepting a confirm or prompt dialog. A refusal is recorded as a failed step with a reason.
An action the judge is confident cannot be undone stops the run at needs_confirmation with exit code 3, and an uncertain one goes to recovery. In a browser that stays open, such as a running Chrome reached over its DevTools port or through the extension, a run stopped at needs_confirmation leaves its tab on the step it stopped at. The judge can be wrong, so read the step before you authorize it.
See what the agent was offered
Config(step_choices=True) adds StepResult.choices to each step: the controls the agent was offered for that decision, with its pick marked. When recovery overrides a decision, the step still records what the first chooser saw.
For a run that clicked something unexpected, check whether the right control was in that list:
- It was offered but not picked: reword the task.
- It was never offered: inspect the capture to see whether the control was missing, hidden or left out of the index.
The control the agent clicked and the quote a result is checked against come from one reading of the page. How it works covers the loop, run statuses and exit codes lists each ending, and the comparison page shows how other agents read a page.
uvx fastbrowse "cancel the subscription and confirm the page says cancelled" --start https://example.com/account
Next: your first run.