Skip to content

Commit a271a21

Browse files
joshariansketch
authored andcommitted
claudetool: streamline browser tools
browser_click, browser_type, browser_get_text, browser_scroll_into_view, browser_resize, and wait_for can all be easily implemented using browser_eval, if browser_eval is given an await parameter. A bit of testing suggests that they are more robust in practice that way, and that multiple tool calls can be combined into a single browser_eval call, which reduces latency. And Sketch does in fact use them as needed. Also, bump up timeouts; empirically, 5 seconds is not enough. As a bonus, fewer tools is better for context management. Co-Authored-By: sketch <[email protected]> Change-ID: s8d8cd418f3e97f26k
1 parent b44a162 commit a271a21

File tree

10 files changed

+53
-907
lines changed

10 files changed

+53
-907
lines changed

claudetool/browse/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ Chrome browser from Go. The tools are built using the
77
## Available Tools
88

99
1. `browser_navigate` - Navigate to a URL and wait for the page to load
10-
2. `browser_click` - Click an element matching a CSS selector
11-
3. `browser_type` - Type text into an input field
12-
4. `browser_wait_for` - Wait for an element to appear in the DOM
13-
5. `browser_get_text` - Get the text content of an element
14-
6. `browser_eval` - Evaluate JavaScript in the browser context
15-
7. `browser_screenshot` - Take a screenshot of the page or a specific element
16-
8. `browser_scroll_into_view` - Scroll an element into view
17-
9. `browser_resize` - Resize the browser window to specific dimensions
10+
2. `browser_eval` - Evaluate JavaScript in the browser context
11+
3. `browser_screenshot` - Take a screenshot of the page or a specific element
1812

1913
## Usage
2014

0 commit comments

Comments
 (0)