Greptile Study: How AI Agents Like Claude and Codex See and Click Your Computer Screen
Summarized by AI from reporting by Hacker News AI, published under our editorial policy.
Greptile's research on the OSWorld benchmark shows that adding an accessibility tree and ID-based clicks can more than double the performance of weaker AI models like GPT-4.1, while the strongest models like GPT-6.1 Sol see no significant benefit.

Key takeaways
- Greptile tested seven OpenAI models on 172 OSWorld tasks and found that adding an accessibility tree more than doubled the performance of weaker models like GPT-4.1 and GPT-5.2.
- GPT-4.1 scored 5.4% with screenshots alone, 20.6% with the accessibility tree added, and 29.3% with ID-based clicks.
- GPT-6.1 Sol scored 83.8% with screenshots alone and showed no statistically significant change when the accessibility tree or ID clicks were added.
- Clicking by coordinates is error-prone because models must guess exact pixel positions, and the same button sits at different coordinates on different screen sizes.
- The accessibility tree was originally developed in 1984 by IBM mathematicians Jim Thatcher and Jesse Wright to help visually impaired users read the PC screen out loud.
Greptile's research team has published a detailed study on how AI agents like Claude and Codex interact with computer screens. These models can analyze screenshots and accessibility trees to understand and click elements on the screen, a capability with significant implications for both developers and end-users.
The 1984 Origins of Screen Accessibility
The concept of screen accessibility dates back to 1984 when IBM mathematicians Jim Thatcher and Jesse Wright developed a system to read the PC's screen out loud for visually impaired users. As graphical user interfaces (GUIs) turned the screen into pixels, apps had to start describing themselves instead. Microsoft shipped Active Accessibility in 1997, Sun started AT-SPI for Linux in 2001, and Apple added its Accessibility API in 2002. This text-based description of every button on screen, known as the accessibility tree, was originally designed to help visually impaired users, but it has since become crucial for AI agents that need to understand and interact with computer interfaces.
Why Clicking by Coordinates Is Error-Prone
A person clicks a button by moving the mouse to it. A model, on the other hand, looks at a screenshot and has to write the coordinates out as text (e.g., 'x=523, y=217') before clicking. Getting these numbers off by a few pixels can mean it clicks the wrong thing. The same button sits at different coordinates on different screen and window sizes, so the guesses get worse when the resolution changes. Additionally, the model’s vision works against it because it doesn’t see a screenshot pixel by pixel. The image is initially shrunk to fit the model's size limit, then cut into tiny squares, each dozens of pixels wide. But a click still has to land on one exact pixel. On ScreenSpot-Pro, a 2025 benchmark with tiny targets on high resolution screens, the best model at release hit the right target only 18.9% of the time. Anthropic’s own docs warn that Claude “might make mistakes or hallucinate when outputting specific coordinates.”
Greptile's Three Experiments on 172 OSWorld Tasks
Greptile built three setups, each building upon the last, and tested them across seven OpenAI models on 172 OSWorld tasks with one attempt per task, a 50-step limit, and low reasoning effort.
Setup 1: Screenshots only. The model runs in a loop where it sees a screenshot and past actions, picks an action (click coordinates, type, or press keys), and then looks at the changes. GPT-4.1 scored a mere 5.4% with screenshots alone, while GPT-6.1 Sol scored 83.8%. On the much harder OSWorld 2.0 offline set, OpenAI reports a score of 71.4% for GPT-6.1 Sol at maximum reasoning effort.
Setup 2: Screenshot + accessibility tree (clicking by coordinates). Here, the model sees the screenshot with an accessibility tree beside it. The tree lists each element's position and dimensions in pixels, so the model can work out where to click after doing the math. Trees helped every model that struggled with screenshots. GPT-5.2 went from 15.8% with screenshots alone to 36.2% with the tree added, and GPT-4.1 from 5.4% to 20.6%. However, strong models barely budged. GPT-6.1 Sol scored 82.7% with the tree, slightly worse than with screenshots alone (83.8%), and none of the three strongest models changed by a statistically significant amount.
Setup 3: Screenshot + accessibility tree + ID clicks. Greptile gave each element in the tree an ID, so the model can simply name the element it wants and the harness clicks it, bypassing the problem of clicking the exact pixel. For weaker models, ID clicks boosted performance on top of the tree. GPT-5.2 went from 36.2% with the tree + coordinates to 52.8% when it clicked by ID, and GPT-4.1 from 20.6% to 29.3%. Put together, the tree and ID clicks more than tripled GPT-5.2’s score with screenshots alone (15.8%). Again, this experiment didn't do much for the strongest models. GPT-6.1 Sol scored 82.7% clicking by coordinates and 82.1% clicking by ID.
Key Finding: The Tree Helps Weaker Models, Not Strong Ones
For the three strongest models, neither step made a difference. Across both steps, the four weaker models gained 9 to 37 points with the tree and ID clicks, more than doubling their scores in three of four cases. If you’re building on weaker models, the tree is still worth adding. However, some apps publish no tree at all. A canvas app like Figma publishes its toolbar, but not its full interface.
Practical Implications for Developers
For developers building AI agents, using accessibility trees and ID clicks can significantly enhance the performance of weaker models. This is particularly useful for applications that require precise interactions with the screen. The accessibility tree can tell the model what’s there, like a button labeled “Save” and where it sits, without the model having to guess pixel coordinates. OSWorld runs on Linux, so Greptile's agents read AT-SPI. Each app's toolkit, such as GTK or Qt, describes its widgets, and a small bridge passes those descriptions on to any program that asks for them, without any permission prompt.
Frequently asked
- What is an accessibility tree in the context of AI agents?
- An accessibility tree is a text description of every button and element on the screen, originally developed to assist visually impaired users, that AI agents can read to understand what is on the screen without relying on pixel-perfect vision.
- Why do AI agents struggle to click the right button using coordinates?
- AI agents struggle because they must write exact pixel coordinates as text (e.g., 'x=523, y=217'), and being off by a few pixels causes them to click the wrong thing. The problem worsens with varying screen resolutions and small targets.
- What is the OSWorld benchmark and what does it measure?
- OSWorld is a 2024 benchmark that evaluates how well AI models can complete tasks on a computer by interacting with the screen. Human testers completed 72% of its tasks, while the best model at release completed about 12%.
- Does adding an accessibility tree help the strongest AI models like GPT-6.1 Sol?
- No. In Greptile's tests, GPT-6.1 Sol scored 83.8% with screenshots alone and 82.7% with the tree added, a difference that was not statistically significant.