Topic 5 of 5 · 4 min read
Reviewing recorded computer-use runs
Goal: Review a computer-use run log with screenshots and find the step where the agent misread the screen and acted on the wrong element.
Record every step of a computer-use run as a screenshot plus the action taken, and review the trail from the first wrong step, not from the final error. The last screen often looks fine while the mistake happened three steps earlier.
Check yourself · 1 of 3
A run failed at step 8. Where should you begin reviewing?
Why it matters
An agent's own summary says "done" whether the run succeeded or not. The only evidence is what was on screen and what was clicked. Without a trail, you debug by guessing. With one, you can see the exact moment the agent saw a different page from the one it assumed.
What to record
For each step:
- the step number and timestamp,
- the screenshot the model saw,
- the action requested (click at x and y, type text, key, scroll),
- the model's short reason, if it gives one,
- the result: the next screenshot and any error.
Playwright's trace viewer is a good model of this: a timeline with a snapshot before and after each action. Many agent frameworks can write a similar log.
How to review a run
- Start at the first step that went off course. Read the log forward until the screen no longer matches the plan.
- Compare screenshot to action. Was the click inside the element the agent meant? Does the typed text appear in the right field?
- Look for a changed page. Did a pop-up, a late banner or a layout shift appear between the screenshot and the click?
- Check each claim. If the agent says "order placed", find the screenshot that shows the confirmation.
- Fix at the cause. Add a wait, a check, a human step or a tighter instruction, then replay.
Before and after
An action log with no evidence:
12:01 click (640, 410)
12:02 type "4471"
12:03 click (900, 700)
12:04 done
You cannot tell what was clicked. A log worth reviewing:
12:01 step 1 shot=001.png click (640,410) reason="open Search box"
12:02 step 2 shot=002.png type "4471" reason="enter invoice id"
12:03 step 3 shot=003.png click (900,700) reason="press Download"
12:04 step 4 shot=004.png done claim="invoice 4471 downloaded"
Opening 003.png shows a cookie banner covering the Download button, so the click at (900,700) hit "Accept all". The claim in step 4 has no matching screenshot.
What goes wrong
- Trusting the final message. The agent reports success because it expected it.
- Looking only at the last screenshot. It may show a plausible page that hides an earlier wrong click.
- Logs with coordinates only. Without the screenshot, a coordinate cannot be mapped to an element.
- Screenshots that contain secrets. Mask or restrict access to them, since they can show personal data.
Examples
Finding the wrong element
step 5 shot=005.png click (310, 220) reason="select Delete draft"
step 6 shot=006.png page title: "Account settings"
The agent meant a button in the drafts list, but the screenshot in step 5 shows the settings page, where (310,220) is another link. The error is in step 4, where a menu click navigated to the wrong page.
Claim without evidence
step 9 done claim="form submitted"
Search the screenshots for a confirmation message or a changed page. If none exists, treat the claim as unproven and re-run.
Key points
- Record a screenshot, the action and the result for every step of every run.
- The agent's final claim is a statement to check, not evidence of success.
- Review from the first step that diverged from the plan, because later steps inherit the mistake.
- Compare each click's coordinates against the screenshot to see which element it actually hit.
- Treat stored screenshots as sensitive data, since they can show personal details.
Common mistakes
- Reading only the agent's final summary and the last screenshot.
- Keeping action logs without the screenshots that give the coordinates meaning.
- Storing run screenshots in a shared folder without checking them for personal or secret data.
Check yourself · 2 of 3
Why is an action log with only coordinates hard to use?
Check yourself · 3 of 3
The agent's last message says 'invoice downloaded'. What is the best check?
Practice items, not counted towards your mastery.
Start here
- Computer use tool (Claude docs) (opens in a new tab)DocsFree
How the screenshot, action and result loop is defined, with the security notes on VMs and prompt injection.
- Computer use (OpenAI API docs) (opens in a new tab)DocsFree
A second vendor's version of the same loop, including how a human confirms risky actions.
- Computer use (Gemini API docs) (opens in a new tab)DocsFree
Gemini's computer-use model and its action set, for comparing vendors side by side.
More for this topic
- Trace Viewer (Playwright docs) (opens in a new tab)DocsFree
A real example of a recorded run with a screenshot per action, which is what run review needs.