Open
Conversation
…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
- Set viewport: null initially to detect natural window size - Cap viewport at 1280x720 maximum for consistency on large screens - Fit to actual window size on smaller screens to prevent overflow - Use innerWidth/innerHeight for accurate viewport detection
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
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.