Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/playwright-core/src/tools/mcp/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 10 additions & 0 deletions packages/playwright-core/src/tools/skills/playwright-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down