Navigate
AI-generatedSummary
Navigate to a specified URL using a browser session managed by Stagehand, initializing the browser instance if needed.
Inputs
- AI Provider — Choose the AI model provider for operations that may use AI (default is OpenAI).
- Browser Mode (required) — Select how to connect to the browser: 'Local Browser' uses a local Chromium instance; 'Remote CDP (Browserless)' connects to a remote browser via CDP.
- CDP URL (required) — WebSocket URL for the remote browser CDP endpoint; required if using Remote CDP browser mode.
- Browserless Timeout (ms) — Timeout in milliseconds to keep Browserless sessions alive when using remote browser mode (default 300000).
- URL (required) — Target URL to navigate the browser to.
- Advanced Options — Additional settings including model name, caching, logging verbosity, navigation wait conditions, timeouts, and resource blocking.
Output shape
A single JSON object per input item confirming navigation success with operation details such as the navigated URL and wait condition.
If the browser session is not already initialized, this operation creates it. Navigation waits for the specified state ('load', 'domcontentloaded', or 'networkidle') before completing. Errors return structured error objects. This operation must be executed first to initialize the browser session for subsequent Stagehand commands.
Examples
Example 1: Navigate using local browser mode to https://example\.com with default options.
Set Browser Mode to Local Browser, provide URL https://example.com, and execute Navigate operation.