session_create
Create a new browser session, optionally connecting to a running Chrome via cdpEndpoint to reuse existing cookies and logins, or launching a fresh isolated browser.
Instructions
Create a new browser session. Pass cdpEndpoint to connect to a running Chrome with existing cookies/logins (e.g. "http://localhost:9222"). Without cdpEndpoint, launches a fresh isolated browser.
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": {
"sessionId": "<sessionId>"
},
"name": "session_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Unique identifier for the new session | |
| cdpEndpoint | No | Chrome DevTools Protocol endpoint to connect to a running Chrome (e.g. "http://localhost:9222"). Inherits all cookies and logged-in sessions. | |
| cookiesFile | No | Path to a JSON file containing cookies to load (Playwright addCookies format). Use to import logged-in sessions. |