Add auto-advance: click Next, scroll to top, capture next page

After each capture the controller asks the vision model to locate a 'Next'
control (returned as normalized screen coordinates), clicks it via OS input,
scrolls to top, and continues the loop. Configurable via SCREEN_LEADS_AUTO_NEXT
/ _NEXT_LOAD_PAUSE / _MAX_AUTO_NEXT, with a per-run safety cap.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-27 07:56:13 +05:30
parent c1eef4c6aa
commit 511e36b660
6 changed files with 93 additions and 0 deletions
+5
View File
@@ -7,6 +7,11 @@ ANTHROPIC_API_KEY=sk-ant-...
# Capture tuning
# SCREEN_LEADS_START_DELAY=5 # grace period to focus the browser (0 = off)
# SCREEN_LEADS_SCROLL_STEPS=6
# Auto-advance through paginated results
# SCREEN_LEADS_AUTO_NEXT=true # click a "Next" control after each capture
# SCREEN_LEADS_NEXT_LOAD_PAUSE=2.5 # seconds to wait for the next page to load
# SCREEN_LEADS_MAX_AUTO_NEXT=25 # safety cap on auto-advances per run
# SCREEN_LEADS_SCROLL_AMOUNT=800
# SCREEN_LEADS_SCROLL_PAUSE=0.8
# SCREEN_LEADS_WATCH_INTERVAL=2.0