playwright-open
Opens a browser on the given site, parks it on the landing page, and returns a session_id the other playwright-* commands take.
It does not sign in. Read the screen with playwright-observe and fill each field with playwright-login, naming a key from credential_keys - sign-in screens differ too much for the credentials to be placed in advance.
Sessions are opened read-only by default. Pass read-only=f to allow input and form submission, which a credential profile marked read_only will still refuse.
Close the session when done - it holds a browser on the shared Playwright MCP server until closed or reaped for being idle.
playwright-open url=VALUE [mcp=VALUE] [credential=VALUE] [otp=VALUE] [read-only=VALUE]
- url=VALUE
- Required. Site to open. e.g. https://fw.example.com/
- mcp=VALUE
- Optional. playwright-mcp connect profile naming the Playwright MCP server to drive through. Not needed when a single server is registered, or when the server sets playwright.server.url.
- credential=VALUE
- Optional. playwright-credential connect profile holding the account for this site, when it needs one. Its keys are listed in credential_keys.
- otp=VALUE
- Optional. One-time code for this session, used when the credential profile's otp_mode is manual. Never stored. e.g. 384920
- read-only=VALUE
- Optional. t by default, allowing only navigation and link clicks. e.g. f
Output Fields
| Field | Type | Name | Description |
|---|---|---|---|
| target | String | Target | Credential profile name, or the site's host when no account was named. |
| session_id | String | Session id | Pass this to the other playwright-* commands. e.g. 6f1c2a08-6c1e-4a1b-9a5e-9b2f0d3c7e11 |
| url | String | Landing URL | Where the browser ended up, which a redirect may have changed. e.g. https://fw.example.com/login |
| title | String | Page title | e.g. Dashboard - Firewall Console |
| credential_keys | String | Credential keys | Comma-separated keys the credential profile holds, for playwright-login. Empty when no account was named. e.g. login_name,password |
| is_read_only | Boolean | Read only | Effective mode, which the credential profile may have forced. e.g. true |
| mcp_session_id | String | MCP session id | Server-side session holding the browser, for correlating server logs. e.g. 898640c9-2b6b-41f4-b8c8-fc23833c3fa6 |