Skip to content

improve speed and accuracy with read_page, list_interactive helpers#499

Open
laithrw wants to merge 5 commits into
mainfrom
optimize/speed-accuracy
Open

improve speed and accuracy with read_page, list_interactive helpers#499
laithrw wants to merge 5 commits into
mainfrom
optimize/speed-accuracy

Conversation

@laithrw

@laithrw laithrw commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary by cubic

Adds read_page() and list_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 with js(...)/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 to innerText if needed.
    • list_interactive(limit=60, viewport_only=True): AX tree + DOMSnapshot; includes gridcell and roleless clickable widgets; backfills missing names from DOM text; filters by size/viewport and ignores large container delegates; returns x, y, role, and short name.
  • Dependencies

    • Added markdownify==1.2.2.

Written for commit 3d7332e. Summary will update on new commits.

Review in cubic

@browser-harness-review

Copy link
Copy Markdown

✅ Skill review passed

Reviewed 1 file(s) — no findings.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread src/browser_harness/helpers.py Outdated
Comment thread src/browser_harness/helpers.py Outdated
Comment thread src/browser_harness/helpers.py Outdated
Comment thread src/browser_harness/helpers.py

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 1 file (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread src/browser_harness/helpers.py
Comment thread src/browser_harness/helpers.py

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread src/browser_harness/helpers.py Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread src/browser_harness/helpers.py Outdated
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