Skip to content

Add hover, upload, marked shots, and richer page walk - #3

Merged
ishu86 merged 3 commits into
mainfrom
feat/oss-browse-pack
Aug 26, 2026
Merged

Add hover, upload, marked shots, and richer page walk#3
ishu86 merged 3 commits into
mainfrom
feat/oss-browse-pack

Conversation

@ishu86

@ishu86 ishu86 commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Walk open shadow roots and same-origin iframes, keep stable refs, star new nodes, and heal a stale click when exactly one name matches.
  • Add computer_hover and computer_upload (path under /home/agent/, ≤5MB, via GET /file), auto-activate a click-opened tab, and return the first 2000 chars of page text from navigate/click.
  • marks=true overlays snapshot boxes on screenshots (Pillow 12.2.0). MCP, Drive tool schemas, and the developer prompt name the new verbs.

Test plan

  • python tests/test_browse.py and python tests/test_navigate.py
  • node web/web-ui/test_serve.mjs
  • Hover a menu that only opens on hover; upload a file under /home/agent into input[type=file]
  • computer_screenshot marks=true draws numbered boxes; a bad PNG still returns the original image
  • Upload refuses paths outside /home/agent, password-like inputs, and files over 5MB

Made with Cursor

Agents can pierce shadow roots and iframes, heal stale refs, hover menus,
assign /home/agent files to file inputs, and read page text from navigate
and click. Marked screenshots overlay snapshot numbers without changing
the live DOM.

Co-authored-by: Cursor <cursoragent@cursor.com>
ishu86 and others added 2 commits August 26, 2026 19:53
Partial fills no longer post the form, and upload treats `..` as a
path segment so names like report..final.pdf still work.

Co-authored-by: Cursor <cursoragent@cursor.com>
…space.

Page text now comes from the same settled page as the returned snapshot,
and iframe controls are no longer hidden by unrelated top-level rectangles.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ishu86
ishu86 merged commit b4b0b47 into main Aug 26, 2026
3 checks passed
@ishu86
ishu86 deleted the feat/oss-browse-pack branch August 26, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant