improve speed and accuracy with read_page, list_interactive helpers#499
improve speed and accuracy with read_page, list_interactive helpers#499laithrw wants to merge 5 commits into
Conversation
✅ Skill review passedReviewed 1 file(s) — no findings. |
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic | Re-trigger cubic
Summary by cubic
Adds
read_page()andlist_interactive()to quickly summarize page content and list visible, clickable elements with coordinates, reducing screenshots and speeding up actions.list_interactive()uses the Accessibility tree with a clickable-widget fallback for higher accuracy; prefer verifying outcomes withjs(...)/page_info()over extra screenshots.New Features
read_page(max_chars=4000): converts HTML to clean markdown, strips scripts/styles/JSON, keeps paragraph breaks; falls back toinnerTextif needed.list_interactive(limit=60, viewport_only=True): AX tree +DOMSnapshot; includesgridcelland roleless clickable widgets; backfills missing names from DOM text; filters by size/viewport and ignores large container delegates; returnsx, y,role, and shortname.Dependencies
markdownify==1.2.2.Written for commit 3d7332e. Summary will update on new commits.