S
SUJAN
Multimodal Systems · 2026

Autonomous Browser & Vision Operator

Multimodal computer-use agent that perceives DOM trees and visual layout coordinates to automate complex web actions.

ROLE AI Technologist & Builder
TIMELINE 2026
SOURCE GITHUB ↗
DEPLOYMENT DEMO ↗
STACK: Python Playwright Multimodal Vision MCP Protocol FastAPI AsyncIO
Task Success Rate 88.7%
Element Precision 99.1%
Visual DOM Grounding Hybrid Mode

The Problem

Standard headless scraping and script-based browser automation break constantly when web layouts change, when elements use dynamic CSS obfuscation, or when single-page apps update asynchronously. Conversely, pure vision-based agents that click blindly on pixels suffer from coordinate drift, high token costs, and slow frame rates.

The Constraints

  • Reliable Element Targeting: Must interact with elements accurately even across fluid viewport re-layouts.
  • Cost Efficiency: Processing full 4K screenshots on every micro-action is too expensive and slow.
  • Fail-Safe Rollback: If a modal overlay blocks an action, the agent must diagnose the obstacle and close or dismiss it.

The Architecture

The Vision Operator utilizes a Hybrid Dual-Stream Grounding Engine:

       ┌────────────────────────────────────────────────────────┐
       │             Browser Viewport & Active Tab              │
       └──────────────────────────┬─────────────────────────────┘

                  ┌───────────────┴───────────────┐
                  ▼                               ▼
       ┌─────────────────────┐         ┌─────────────────────┐
       │ Accessibility Tree  │         │ Screen Viewport     │
       │ (Semantic DOM)      │         │ (Visual Snapshot)   │
       └──────────┬──────────┘         └──────────┬──────────┘
                  │                               │
                  └───────────────┬───────────────┘

       ┌────────────────────────────────────────────────────────┐
       │   Grounding Engine: Aligns DOM IDs with Pixel Centers  │
       └──────────────────────────┬─────────────────────────────┘

       ┌────────────────────────────────────────────────────────┐
       │  Action Dispatcher: Click, Type, Scroll, Wait, Verify   │
       └────────────────────────────────────────────────────────┘

How It Works

  1. Accessibility Interception: Extracts the native browser accessibility snapshot, assigning transient alphanumeric tags to interactive elements.
  2. Visual Verification: Compares the coordinate space of target nodes against the visual screenshot to avoid clicking behind hidden overlays.
  3. Execution with Feedback: Dispatches native Playwright CDP events and listens for DOM mutations before declaring a step complete.

What Failed & Engineering Decisions

The Failure: Infinite Loops on Stale DOM References

In single-page applications with heavy animations (e.g., custom dropdowns, modal transitions), the agent frequently fired click events before elements finished animating into place, resulting in silent misses.

The Decision

We engineered an Autonomous State Mutation Sentinel:

  • The agent polls frame stabilization before executing clicks.
  • If an action produces no DOM tree changes within 800ms, the agent marks the attempt as unverified and re-captures the viewport with an expanded perception crop.
  • This raised task success rates from 61% to 88.7% on challenging dynamic forms.

Results

  • Successfully automates complex workflows such as multi-step SaaS provisioning, authenticated data extraction, and visual regression reporting.
  • Native integration with the Model Context Protocol (MCP), allowing any AI client to control browser sessions securely.