Skip to content

Conversation

@pwarnock
Copy link

Summary

Adds executablePath parameter to browser_eval tool for specifying custom browser binary locations.

Motivation

Users with Homebrew-installed Playwright browsers cannot use browser automation because browsers are installed at non-standard locations (~/Library/Caches/ms-playwright/). This parameter passes through to playwright-mcp's --executable-path flag.

Use Case

browser_eval({
  action: "start",
  browser: "chrome",
  executablePath: "~/Library/Caches/ms-playwright/chromium-1200/.../Google Chrome for Testing"
})

Changes

  • Added executablePath to startBrowserEvalMCP() options interface
  • Added executablePath to browser_eval tool input schema
  • Updated tool description with usage example
  • Added unit tests for the new parameter

Testing

  • Unit tests pass (npm run test)
  • Build succeeds (npm run build)
  • Manual verification with custom executable path

…ations

Adds an `executablePath` parameter to the browser_eval tool's start action,
allowing users to specify a custom browser binary location.

This is useful for:
- Homebrew-installed Playwright browsers at ~/Library/Caches/ms-playwright/
- CI/CD environments with browsers in non-standard locations
- Systems without Chrome/Edge installed in default locations

The parameter is passed through to playwright-mcp's --executable-path flag.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant