Skip to content

[FEATURE]:Screen vision (screenshots) + browser control tools for the agent #48377

Closed as not planned

Description

@catilia096-droid

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

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:
  1. A screenshot tool (capture screen / active window) whose output is
    attached as an image the model can actually see.
  2. 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!

Activity

  1. github-actions commented on Sep 10, 2026

    @github-actions
    Contributor

    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.

  2. changed the title [-][FEATURE]:[/-] [+][FEATURE]:Screen vision (screenshots) + browser control tools for the agent[/+] on Sep 10, 2026
  3. 4Liberty commented on Sep 23, 2026

    @4Liberty

    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

  4. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    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.

    Related issues:

    Maintainers will consider this request.

  5. jabrailkhalil commented on Nov 3, 2026

    @jabrailkhalil

    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:

    • 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?

  6. neriousy commented on Nov 12, 2026

    @neriousy
    Member

    Thanks for the suggestion. This isn't something we plan to build, so closing to keep the tracker focused.

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