You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -342,7 +368,55 @@ Example - product price on listing page:
342
368
Goal: "find the price of the first laptop"
343
369
Current URL: store.com/laptops (correct page, prices visible)
344
370
{"action":"EXTRACT","target":"price of first laptop","goal":"Extract the price of the first laptop listing","verify":[],"reasoning":"prices are visible in listing elements"}
345
-
`;
371
+
372
+
STEP 3 - COUNTING ACROSS FULL PAGE:
373
+
If the task asks to COUNT items ("how many", "number of", "count", "total"):
374
+
- Use SCROLL_AND_COUNT instead of EXTRACT
375
+
- Set "countTarget" to describe what to count (e.g., "listings", "products", "articles")
376
+
- The system will scroll through the entire page and sum up counts
377
+
- Do NOT use EXTRACT for counting tasks — EXTRACT only sees the current viewport
378
+
379
+
Example - count all listings:
380
+
Goal: "note how many listings are available"
381
+
Current URL: alibaba.com/search?SearchText=smartphones (correct page)
382
+
{"action":"SCROLL_AND_COUNT","countTarget":"product listings","goal":"Count total product listings","verify":[]}
0 commit comments