open_session
Open a persistent browser session for multi-step web tasks, keeping the page alive across calls to explore, click, fill, debug, and collect console/network logs.
Instructions
Open a persistent browser session and return {session_id, url, title, screenshot}. The page stays alive across tool calls so you can explore, click, fill, debug, and accumulate console/network logs — the main workflow for anything multi-step. Pass project to share its authenticated context; headed=true opens a visible window. Sessions expire after idle timeout, so close_session when done.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "open_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to open | |
| width | No | Custom viewport width (applied before the first load) | |
| device | No | Open already emulating a device. Size presets (mobile_sm, mobile, mobile_lg, tablet, tablet_lg, laptop, desktop, desktop_lg) just set the viewport. Any Playwright device name ('iPhone 14', 'Pixel 7', 'Galaxy S9+', 'iPad Pro 11') or 'samsung_internet' also emulates user agent, DPR and touch in a private context seeded with the project's login state. | |
| headed | No | Open a VISIBLE browser window instead of headless (default: false). Requires a display on the server. Use when you want to watch or hand-drive the session. | |
| height | No | Custom viewport height | |
| consent | No | Handle the cookie-consent banner right after the page loads (same as handle_consent). | |
| project | No | Project name (optional). With a project: runs in its shared, authenticated context. Without: runs in an isolated context (no shared cookies/login). |