Commit 9efebbf
authored
fix(browser_execute): use real helper names in tool description (#26)
The tool description listed `goto`, `click`, `screenshot` -- none of those
exist. The actual helpers (per harness/src/browser_harness/helpers.py)
are `goto_url`, `click_at_xy`, `capture_screenshot`. Agents followed the
description literally and got NameError on every call.
Also nudge agents toward `new_tab(url)` for first navigation per
SKILL.md, since bare `goto_url` clobbers the user's active tab.
Repro: fresh install, ask any model to "go to wikipedia". Pre-fix:
NameError: name 'goto' is not defined. Post-fix: agent uses
`new_tab("https://wikipedia.org")` directly.1 parent 95bb954 commit 9efebbf
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | | - | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
0 commit comments