You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]:Add browser tool support via puppeteer-core for UI verification and console debugging #48436
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:
browser_screenshot Tool: Allows the Agent to take visual screenshots of the rendered page for layout and UI self-checking via Vision models.
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
github-actions commentedon Sep 11, 2026
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.