-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Description
Problem Description
Currently, many navigation actions require a waiting period until the next page is actually available. This creates unnecessary tool calls because the navigation tool call initially returns nothing, forcing the LLM to intelligently re-read the page content.
Feature Request
It would be helpful to have an option to automatically wait (e.g., 1 second) after each navigation action. This would:
- Reduce context usage: Fewer tool calls needed to achieve the same result
- Reduce tool call count: No need for separate wait/read operations after navigation
Proposed Solution
Add a configuration option (e.g., --navigation-wait-duiration 1000
) that automatically introduces a brief wait period after navigation operations before returning control to the LLM.
Alternative Solutions
- Add this as a parameter to individual navigation calls rather than a global setting
- Implement smart waiting that detects when page load is complete rather than using fixed delays
This would significantly improve the developer experience when working with playwright-mcp for navigation-heavy automation tasks.