-
Notifications
You must be signed in to change notification settings - Fork 802
Add Playwright based MCP server #1647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lilac
wants to merge
10
commits into
web-infra-dev:main
Choose a base branch
from
lilac:playwright
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…core - Move playwright from devDependencies to dependencies so it's available at runtime - Add playwright-core to externals to prevent bundling issues - Fixes 'Cannot find module playwright-core' error when running in http mode
…nshots - Add waitForNetworkIdle method to BaseAgent interface in types.ts - Call waitForNetworkIdle after action execution in tool-generator.ts - Update PlaywrightAgent.waitForNetworkIdle to use optional timeout, respecting Playwright's configured navigationTimeout by default This fixes an issue where clicking links that trigger navigation would return screenshots of the old page before the new page finished loading.
Add common tools for browser control that execute directly without AI: - navigate, reload, go_back, go_forward, get_url, get_title Also add web_close tool to playwright-mcp and web-bridge-mcp.
Some MCP clients like Cursor perform client-side tool argument validation that incorrectly rejected string values when the schema specified union([string, number]). Simplified the value field to accept only strings, which fixes compatibility issues while maintaining the same runtime behavior. The transform() call is also removed since it's no longer needed.
✅ Deploy Preview for midscene ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Actions like KeyboardPress with no locate parameter should execute directly without calling the AI model service. Previously, all actions went through aiAction() which requires AI, causing 403 errors when pressing keys like Enter/Tab without specifying an element to locate. Changes: - Add callActionInActionSpace to BaseAgent interface for direct execution - Add actionNeedsAI() to detect if locate fields require AI resolution - Use direct execution when no locate prompt is provided - Fall back to aiAction only when AI reasoning is needed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In v1 the MCP server for web automation only supports bridge mode. This change bring the deprecated MCP server back.