Skip to content

[FEATURE]:Add browser tool support via puppeteer-core for UI verification and console debugging #48436

Closed

Description

@peng9627

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Is your feature request related to a problem? Please describe.

When using OpenCode to develop full-stack or frontend projects, there is currently no closed-loop way for the Agent to verify the rendered UI or catch runtime web errors. Developers have to manually open an external browser to check the results, which breaks the automation flow.

Describe the solution you'd like

I would like to introduce a browser integration service leveraging puppeteer-core. This will allow the Agent to dynamically interact with web pages (e.g., localhost dev servers).

Key capabilities to be added:

  1. browser_screenshot Tool: Allows the Agent to take visual screenshots of the rendered page for layout and UI self-checking via Vision models.
  2. browser_console_logs Tool: Enables the Agent to listen to and capture browser console errors or network failures to auto-debug runtime crashes.

Describe alternatives you've considered

  • Bundling full Chromium: Rejected, as it would bloat the installation package by 150MB+.
  • Using puppeteer-core (Proposed): Highly lightweight. It will automatically detect and reuse the user's existing local Chrome/Edge installation. It will be implemented as an optional tool that gracefully deactivates if no local browser is found.

Additional context

I am ready to implement this feature and submit a Pull Request. I plan to use Codex to assist with the code scaffolding and logic implementation inside the src/services/agent/tools (or equivalent) directory.

Before diving into the code, I'd appreciate any feedback on:

  • Whether this feature aligns with your roadmap.
  • Any architectural constraints or file structure preferences I should follow.

Activity

  1. github-actions commented on Sep 11, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your request is sufficiently different, please clarify how it differs from the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions