browser_new_session
Create a new isolated browser session with optional proxy, persistent storage, or headless mode. Supports HAR recording and custom filters for network logging.
Instructions
Create a new stealth browser session and make it current. Returns its id.
Runs PROXYLESS by default. To use a proxy, pass either proxy_url
('http://user:pass@host:port') or proxy_server[+username/password].
no_proxy=True forces proxyless even if an env/default proxy is configured.
persistent: keep cookies/localStorage in a profile dir across runs.
headless: override the configured default (None = use the default).
record_har: capture a full network HAR (export with browser_har_export).
har_url_filter: glob to scope what the HAR records (e.g. '**/api/**' or
'**/students/**') so it excludes login/captcha/static noise; default = all.
storage_state: path to a saved cookies/localStorage JSON to reload.
(For a screen recording, use browser_start_recording / browser_stop_recording → GIF.)
Most tools auto-create a default session, so calling this is optional.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| persistent | No | ||
| label | No | ||
| headless | No | ||
| record_har | No | ||
| har_url_filter | No | ||
| storage_state | No | ||
| proxy_url | No | ||
| proxy_server | No | ||
| proxy_username | No | ||
| proxy_password | No | ||
| no_proxy | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |