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
Copy file name to clipboardExpand all lines: src/core/prompts/tools/browser-action.ts
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,9 @@ Parameters:
15
15
* launch: Launch a new Puppeteer-controlled browser instance at the specified URL. This **must always be the first action**.
16
16
- Use with the \`url\` parameter to provide the URL.
17
17
- Ensure the URL is valid and includes the appropriate protocol (e.g. http://localhost:3000/page, file:///path/to/file.html, etc.)
18
+
* hover: Move the cursor to a specific x,y coordinate.
19
+
- Use with the \`coordinate\` parameter to specify the location.
20
+
- Always move to the center of an element (icon, button, link, etc.) based on coordinates derived from a screenshot.
18
21
* click: Click at a specific x,y coordinate.
19
22
- Use with the \`coordinate\` parameter to specify the location.
20
23
- Always click in the center of an element (icon, button, link, etc.) based on coordinates derived from a screenshot.
@@ -28,7 +31,7 @@ Parameters:
28
31
- Example: \`<action>close</action>\`
29
32
- url: (optional) Use this for providing the URL for the \`launch\` action.
30
33
* Example: <url>https://example.com</url>
31
-
- coordinate: (optional) The X and Y coordinates for the \`click\` action. Coordinates should be within the **${args.browserViewportSize}** resolution.
34
+
- coordinate: (optional) The X and Y coordinates for the \`click\` and \`hover\` actions. Coordinates should be within the **${args.browserViewportSize}** resolution.
32
35
* Example: <coordinate>450,300</coordinate>
33
36
- size: (optional) The width and height for the \`resize\` action.
0 commit comments