PerceptionComputer agent
Perception router
Uses the cheap element list when it works and switches to pictures when it doesn't.
What it is
For each step it checks the accessibility snapshot: does it list the expected target, with enough interactive nodes? If yes it sends the tree; if not it sends a screenshot.
When to use it
- A mix of modern apps and legacy or canvas apps
When to skip it
- A single app you know well: pick the right perception once
Why (the trade-off)
You pay pixel prices only on the screens that need pixels.
Where it sits
Perception layer. It decides per step which observation the model gets.
What it needs first
- Accessibility-tree perceptionthe cheap path
- Screenshot perceptionthe fallback
What can be added to it
- pairs withRef actions (accessibility API)precise actions on the tree path
Effect of adding it
- cost —
- latency —
- reliability ↑
- safety —
Risks it handles
- An app with no accessibility tree · full
depth 4+1 production note with numbers.