From 00d69bc6cce42c44f9c64b0658e669269b485b7b Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 11 May 2026 15:56:23 -0700 Subject: [PATCH] docs(cli): drop unsupported open flags from agent-cli configuration The Configuration page documented `--device`, `--viewport-size`, `--proxy-server`, `--proxy-bypass`, `--user-agent` and `--ignore-https-errors` as flags of `playwright-cli open`, but the command does not accept them. Remove the misleading sections and the matching lines from the "All open parameters" block. The equivalent `PLAYWRIGHT_MCP_*` environment variables (still listed in the env-var table) and the `contextOptions` config-file workaround continue to work. Fixes: https://github.com/microsoft/playwright-cli/issues/405 --- agent-cli/configuration.mdx | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/agent-cli/configuration.mdx b/agent-cli/configuration.mdx index 59f4448ea3..f2141a54e3 100644 --- a/agent-cli/configuration.mdx +++ b/agent-cli/configuration.mdx @@ -21,24 +21,6 @@ playwright-cli open --browser=webkit # WebKit (Safari engine) playwright-cli open --browser=msedge # Microsoft Edge ``` -## Device emulation - -```bash -playwright-cli open --device="iPhone 15" https://example.com -``` - -## Viewport size - -```bash -playwright-cli open --viewport-size=1280x720 https://example.com -``` - -## Proxy - -```bash -playwright-cli open --proxy-server=http://myproxy:3128 --proxy-bypass=localhost,*.internal.com https://example.com -``` - ## Profile modes ### In-memory (default) @@ -263,14 +245,8 @@ See [Attach](./commands/attach.mdx) for details. playwright-cli open [url] # open browser playwright-cli open --headed # show browser window playwright-cli open --browser=firefox # specific browser -playwright-cli open --device="iPhone 15" # device emulation -playwright-cli open --viewport-size=1280x720 # viewport size playwright-cli open --persistent # persist profile to disk playwright-cli open --profile= # custom profile directory -playwright-cli open --proxy-server= # proxy server -playwright-cli open --proxy-bypass= # bypass proxy -playwright-cli open --user-agent= # custom user agent -playwright-cli open --ignore-https-errors # ignore HTTPS errors playwright-cli open --config=file.json # use config file playwright-cli attach --extension # connect via extension playwright-cli attach --cdp # connect via CDP