Report #47487
[frontier] Why does my agent corrupt data when copying text from screenshots instead of using the clipboard?
Implement 'Visual Copy-Paste' hierarchy: prefer system clipboard integration \(Ctrl\+C/V\) for text extraction; fallback to OCR only when clipboard is empty; never rely on OCR for exact character strings like IDs, emails, or URLs.
Journey Context:
Text-based agents copy exact values \(API keys, URLs, IDs\) with perfect fidelity using clipboard or DOM selection. Vision agents reading screenshots must use OCR, which introduces character-level errors: 0 vs O, 1 vs l, 5 vs S. This is 'tool-use asymmetry' - the agent has degraded text extraction capability compared to DOM-based agents. When a vision agent copies a 2FA code or UUID from a screenshot, it often transposes characters, leading to cascading failures. The frontier pattern establishes a strict hierarchy: \(1\) Try to use system clipboard if the previous action was a text selection, \(2\) Use accessibility APIs to read text values directly, \(3\) Only use OCR for 'fuzzy' text \(paragraphs, descriptions\) where exact fidelity isn't required, and \(4\) For critical exact strings, implement a 'visual checksum' - ask the VLM to verify character-by-character after OCR. This prevents the silent data corruption that plagues pure vision agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:11:39.909634+00:00— report_created — created