mcp-playwright
mcp-playwright copied to clipboard
Multiple Chromium Launches, Need Sticky Window
By installing the playwright and puppeteer-core at the root of the n8n repo pnpm add -w playwright puppeteer-core my n8n instance (launched with npx n8n) is able to call for the tools and then start using them
So I've Playwright working in this workflow, but it's not re-using the first window - each tool execution is starting a new window.
Is there anything that is returned from an Execute Tool call that I can put into other calls so that I run all the Tools against the same browser instance?
When the AI calls the playwright-navigate tool it sends these inputs:
{
"toolname": "playwright_navigate",
"Tool_Parameters": {
"url": "https://www.postb.in/"
}
}
The Playwright MCP Server opens a Chromium Instance which navigates to the requested page and returns this info
{
"toolname": "playwright_navigate",
"Tool_Parameters": {
"url": "https://www.postb.in/"
}
}
I'll go read up on Playwright and look for something to support keeping all executions together.
Question: when used with Claude, are all requests sent to the same browser instance?
I'm having the same issue when used with google.adk
I've also encountered this issue and am searching for a solution.
@ajoslin103 Has there been any progress, or are there other solutions? Thank you.
I've also encountered this issue and am searching for a solution.
I solved this problem by using the supergateway and replacing the stdio mode with SSE.
npx -y supergateway --port 8768 --stdio "npx -y @executeautomation/playwright-mcp-server"
I switch to this mcp server - worked well for me
https://github.com/microsoft/playwright-mcp