File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const steam_games: EvalFunction = async ({
1212
1313 const agentResult = await agent . execute ( {
1414 instruction :
15- "Show most played games in Steam. And tell me the number of players in In game at this time" ,
15+ "Show most played games in Steam. And tell me the number of players in game at this time" ,
1616 maxSteps : 30 ,
1717 } ) ;
1818
Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ export const createScrollTool = (page: Page) =>
66 tool ( {
77 description : "Scroll the page" ,
88 parameters : z . object ( {
9- pixels : z . number ( ) . describe ( "Number of pixels to scroll" ) ,
9+ pixels : z . number ( ) . describe ( "Number of pixels to scroll up or down" ) ,
10+ direction : z . enum ( [ "up" , "down" ] ) . describe ( "Direction to scroll" ) ,
1011 } ) ,
11- execute : async ( { pixels } ) => {
12- await page . mouse . wheel ( 0 , pixels ) ;
12+ execute : async ( { pixels, direction } ) => {
13+ await page . mouse . wheel ( 0 , direction === "up" ? - pixels : pixels ) ;
1314 return { success : true , pixels } ;
1415 } ,
1516 } ) ;
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ IMPORTANT GUIDELINES:
1721722. Use the screenshot tool to verify page state when needed
1731733. Use appropriate tools for each action
1741744. When the task is complete, use the "close" tool with taskComplete: true
175- 5. If the task cannot be completed, use "close" with taskComplete: fals
175+ 5. If the task cannot be completed, use "close" with taskComplete: false
176176
177177TOOLS OVERVIEW:
178178- screenshot: Take a compressed JPEG screenshot for quick visual context (use sparingly)
@@ -181,6 +181,7 @@ TOOLS OVERVIEW:
181181- extract: Extract structured data
182182- goto: Navigate to a URL
183183- wait/navback/refresh: Control timing and navigation
184+ - scroll: Scroll the page x pixels up or down
184185
185186STRATEGY:
186187- Prefer ariaTree to understand the page before acting; use screenshot for quick confirmation.
You can’t perform that action at this time.
0 commit comments