From e3dd122c68ec0370abe29dca9efefe5ce3df500d Mon Sep 17 00:00:00 2001 From: Wasim Date: Sun, 30 Aug 2026 17:06:33 +0530 Subject: [PATCH 1/2] fix(mcp): disable chromium sandbox on linux for undefined channel Fixes #42452 Treats an undefined channel the same as 'chromium' and 'chrome-for-testing' when deciding the sandbox default on Linux in the MCP config. This ensures the bundled downloaded browser works out of the box. --- packages/playwright-core/src/tools/mcp/config.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/playwright-core/src/tools/mcp/config.ts b/packages/playwright-core/src/tools/mcp/config.ts index 0fa8802d2be5a..8d141d9037098 100644 --- a/packages/playwright-core/src/tools/mcp/config.ts +++ b/packages/playwright-core/src/tools/mcp/config.ts @@ -225,10 +225,12 @@ async function validateBrowserConfig(browser: MergedConfig['browser']): Promise< } if (browserName === 'chromium' && browser.launchOptions.chromiumSandbox === undefined) { - if (process.platform === 'linux') - browser.launchOptions.chromiumSandbox = browser.launchOptions.channel !== 'chromium' && browser.launchOptions.channel !== 'chrome-for-testing'; - else + if (process.platform === 'linux') { + const channel = browser.launchOptions.channel; + browser.launchOptions.chromiumSandbox = channel !== undefined && channel !== 'chromium' && channel !== 'chrome-for-testing'; + } else { browser.launchOptions.chromiumSandbox = true; + } } if (browser.isolated && browser.userDataDir) From 786dd3ffb38e0f26332fb4fe7162eb96e4aaaeeb Mon Sep 17 00:00:00 2001 From: Wasim Date: Sun, 30 Aug 2026 17:08:14 +0530 Subject: [PATCH 2/2] docs(cli): document playwright-cli install --skills in SKILL.md Fixes #42459 Adds the `install --skills` command to the Installation section of `SKILL.md` so that agents reading the file will know how to install or update the skill. --- .../src/tools/skills/playwright-cli/SKILL.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/playwright-core/src/tools/skills/playwright-cli/SKILL.md b/packages/playwright-core/src/tools/skills/playwright-cli/SKILL.md index b7c883842d260..632fc93e7b946 100644 --- a/packages/playwright-core/src/tools/skills/playwright-cli/SKILL.md +++ b/packages/playwright-core/src/tools/skills/playwright-cli/SKILL.md @@ -359,6 +359,16 @@ When local version is available, use `npx playwright cli` in all commands. Other npm install -g @playwright/cli@latest ``` +To install or update the agent skill itself, run: + +```bash +# Install globally for all agents: +playwright-cli install --skills=agents --global + +# Install only for Claude Desktop: +playwright-cli install --skills=claude +``` + ## Example: Form submission ```bash