Navigate page
navigate_pageLoad a URL, go back, forward, or reload the current page, with optional device emulation applied before the request for accurate mobile behavior.
Instructions
Navigate the selected page — load a URL, or go back, forward or reload.
Navigating rotates the collected logs: the previous page's console and
network entries move into the preserved history (the last 3 navigations are
kept), still reachable via include_preserved_* on the list tools.
Passing device applies the emulation before the request is sent, so the
server sees mobile signals on the very first byte — calling emulate_device
afterwards is too late for that first request.
Returns the resulting URL together with all open pages. This reuses the current tab; use new_page to open an additional one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Target URL — required when type="url", ignored otherwise. Include the scheme: "https://example.com", not "example.com". | |
| type | No | The kind of navigation: "url" loads `url`, "back" and "forward" move through session history, "reload" reloads the current page. | url |
| device | No | Device to emulate — sets user agent, UA client hints, viewport, device pixel ratio and touch together. Presets: "pixel_7" (aliases: pixel7, android, android_phone), "pixel_7_landscape" (pixel7_landscape, android_landscape), "ipad_air" (ipadair, ipad, tablet). Case, spaces and -/_ are normalised. Empty string leaves emulation unchanged. | |
| timeout | No | Maximum wait in milliseconds. 0 uses the built-in default. | |
| init_script | No | JavaScript executed in every new document before any of the page's own scripts, for this navigation. Use it to stub out APIs or plant values a page reads at startup. Plain statements, not a function expression. | |
| ignore_cache | No | Bypass the HTTP cache (a hard reload). Only applies to type="reload". | |
| handle_before_unload | No | How to answer a beforeunload confirmation ("Leave site?") raised by the page being left. "accept" leaves, "dismiss" stays — in which case the navigation does not happen. | accept |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |