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]:Screen vision (screenshots) + browser control tools for the agent #48377
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Hi! I'm a user working with an OpenCode agent (Muse Spark) on Windows.
My agent builds GUI programs (tkinter, turtle, pygame) and opens web pages
for me, but it is completely blind:
It can launch windows (Start-Process) but never sees them. When a program
crashes on start, it only finds out via log files. It cannot verify layout,
colors, or that a drawing looks right — it checks code with tests instead
of looking with eyes.
It can open URLs but cannot click, scroll, fill forms, or read what is on
the page. "Click that button for me" is impossible.
Feature request:
A screenshot tool (capture screen / active window) whose output is
attached as an image the model can actually see.
Optionally: basic browser control (go to URL, click, type, read content).
Use cases: verifying GUI apps the agent just wrote, guiding users step by
step through websites ("press the blue button"), visual debugging.
Thank you!
Additionally, the issue title is empty — the title is just [FEATURE]: with no descriptive text. Please edit the issue to add a meaningful title describing the feature you are requesting.
The browser tool landing in #48755 still cannot capture while the review pane is not displaying the tab: screenshot requires a composited surface (fromSurface: true) and refuses with "needs a visible tab", while the DOM actions keep working.
Filed with measurements, the exact precondition, and a suggested fromSurface: false fallback: #50781
Thanks for the request! You'd like the agent to be able to see what it builds: a screenshot tool (whole screen or active window) whose image the model can read, plus basic browser control (go to a URL, click, type, read the page).
Some of this is already in v2:
Browser control: the v2 desktop app has an in-app browser the agent can drive. It can open tabs, navigate, read the page, click, fill forms, scroll, press keys and take screenshots the model can see.
Seeing native windows (tkinter/pygame): there's no built-in screen-capture tool yet. A workaround: have the agent save a screenshot to a PNG with PowerShell (for example with System.Windows.Forms / System.Drawing), then open it with the read tool. read passes PNG/JPEG images to the model, so the agent can see it, as long as your model accepts image input. You can add that step to your project's AGENTS.md so the agent does it after launching a GUI.
For a first implementation, I’d keep the scope narrow:
Screenshot, click, type, keyboard shortcuts and scrolling within an explicitly selected application window.
Accessibility-based targeting where available, with screenshots for visual verification.
Integration with OpenCode’s permission system, an immediate stop control, and checks that reject actions when the target window changes.
A small fixture app and repeatable tests for focus changes, display scaling, cancellation and denied access.
I would keep the platform adapter separate so other operating systems could be added without rewriting the agent-facing interface.
I’ve read the existing computer-use discussions, including #56921 and #32945, and would coordinate with that work. Before opening an implementation PR, I’d like to agree on the integration point and acceptance criteria.
Would a Windows-first prototype be useful, and would you prefer an official integration or a built-in tool?
Activity
github-actions commentedon Sep 10, 2026
This issue might be a duplicate of existing issues. Please check:
Additionally, the issue title is empty — the title is just
[FEATURE]:with no descriptive text. Please edit the issue to add a meaningful title describing the feature you are requesting.[-][FEATURE]:[/-][+][FEATURE]:Screen vision (screenshots) + browser control tools for the agent[/+]4Liberty commentedon Sep 23, 2026
The browser tool landing in #48755 still cannot capture while the review pane is not displaying the tab:
screenshotrequires a composited surface (fromSurface: true) and refuses with "needs a visible tab", while the DOM actions keep working.Filed with measurements, the exact precondition, and a suggested
fromSurface: falsefallback: #50781opencodejr commentedon Oct 28, 2026
Thanks for the request! You'd like the agent to be able to see what it builds: a screenshot tool (whole screen or active window) whose image the model can read, plus basic browser control (go to a URL, click, type, read the page).
Some of this is already in v2:
System.Windows.Forms/System.Drawing), then open it with thereadtool.readpasses PNG/JPEG images to the model, so the agent can see it, as long as your model accepts image input. You can add that step to your project'sAGENTS.mdso the agent does it after launching a GUI.Related issues:
Maintainers will consider this request.
jabrailkhalil commentedon Nov 3, 2026
I’d like to help implement desktop computer use for OpenCode, starting with a small Windows prototype.
I’ve contributed merged work to Qwen Code’s Android development shell and PWA support and Google ADK Go’s live-agent concurrency handling. I also built an independent PydanticAI crash/replay lab, covering interrupted execution, stale workers and uncertain outcomes.
For a first implementation, I’d keep the scope narrow:
I would keep the platform adapter separate so other operating systems could be added without rewriting the agent-facing interface.
I’ve read the existing computer-use discussions, including #56921 and #32945, and would coordinate with that work. Before opening an implementation PR, I’d like to agree on the integration point and acceptance criteria.
Would a Windows-first prototype be useful, and would you prefer an official integration or a built-in tool?
neriousy commentedon Nov 12, 2026
Thanks for the suggestion. This isn't something we plan to build, so closing to keep the tracker focused.