Navigation¶
Tools for moving the browser around: opening URLs, going back/forward, refreshing, and scrolling.
Response shape
All navigation tools that change the page state return (text_summary, annotated_screenshot, element_map).
navigate_to¶
Open a URL in the current tab.
Parameters
| Name | Type | Description |
|---|---|---|
url |
str |
The URL to open. http://, https://, file://, and about:blank all work. |
Behavior
- If
urlislocalhostand DNS resolution fails, automatically retries with127.0.0.1to bypass proxy blockers. - Waits up to
BROWSER_TIMEOUTms (default 30s) fordomcontentloaded. - Returns the post-navigation annotated screenshot and a fresh element map.
Example
→ navigate_to("https://news.ycombinator.com")
→ navigate_to("http://localhost:3000") # auto-fallback to 127.0.0.1
go_back¶
Navigate back in browser history.
Example
No history yet?
Returns the current page unchanged if there is no previous entry in history.
go_forward¶
Navigate forward in browser history.
refresh_page¶
Reload the current page.
Example
scroll¶
Scroll the viewport in a direction by a named amount or raw pixel count.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
direction |
str |
"down" |
One of: up, down, left, right. |
amount |
str |
"medium" |
Named (small, medium, large, page, top, bottom) or raw pixels as a string (e.g. "500"). |
Named amounts
| Name | Pixels |
|---|---|
small |
200 |
medium |
500 |
large |
1000 |
page |
one full viewport |
top |
scroll to top |
bottom |
scroll to bottom |
Examples
→ scroll("down") # 500px down
→ scroll("up", "small") # 200px up
→ scroll("down", "500") # exactly 500px
→ scroll("down", "page") # one viewport
→ scroll("down", "bottom") # jump to bottom
See also¶
- Interaction tools — click, type, hover
- Tabs tools — multi-page navigation
- Web research guide — a worked example