Skip to content

Add headless browser support for agents #146

Closed

Description

@pandore

Use Case

Agents need to interact with web UIs that don't have APIs — dashboards, admin panels, visual analytics tools. Concrete example: Microsoft Clarity provides heatmaps, session recordings, and scroll maps only through its dashboard UI, not via its Data Export API. An agent could take screenshots, analyze them visually, and include findings in automated reports — but only if it has a headless browser.

Current State

  • Chrome DevTools MCP works great locally (Claude Code + Chrome on the user's machine)
  • Trinity agents have no browser capability — only CLI tools, file operations, and MCP
  • This limits agents to API-only integrations, missing rich visual data sources

Proposal

Add optional headless browser support (Chromium/Playwright) to agent containers:

  1. Pre-installed Chromium in agent container images (or installable via setup script)
  2. Chrome DevTools MCP or equivalent available as an MCP server option
  3. Agents can navigate pages, take screenshots, fill forms, and extract data
  4. Opt-in per agent (not all agents need a browser — keep images lean for those that don't)

Example Workflows

  • CRO analysis: Navigate Clarity dashboard → screenshot heatmaps → analyze scroll/click patterns → include in weekly report
  • Competitor monitoring: Screenshot competitor pages for visual change detection
  • QA/visual regression: Navigate deployed site → screenshot key pages → compare with baseline
  • Admin automation: Interact with tools that only have web UIs (no API)

Considerations

  • Container size increase (Chromium is ~400MB)
  • Memory usage for headless rendering
  • Could be a separate "browser-enabled" container variant
  • Security: sandboxing browser execution within the container

Activity

  1. added
    complexity-medium
    theme-devex
    on Jun 3, 2026
  2. added
    type-feature
    priority-p3
    on Jun 3, 2026
  3. added
    status-incubating
    on Jun 14, 2026
  4. vybe commented on Jul 3, 2026

    @vybe
    Contributor

    Incubation triage 2026-07-03: closing — P3, no demand signal since March; agents can already install Playwright/headless tooling per-template. Reopen on a concrete agent use case.

  5. removed
    status-incubating
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-mediumpriority-p3theme-devextype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions