Skip to content

Multiple Chromium Launches, Need Sticky Window #75

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
ajoslin103 opened this issue Mar 22, 2025 · 1 comment
Open

Multiple Chromium Launches, Need Sticky Window #75

ajoslin103 opened this issue Mar 22, 2025 · 1 comment

Comments

@ajoslin103
Copy link

ajoslin103 commented Mar 22, 2025

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?

@ajoslin103 ajoslin103 changed the title Problem when using in N8N Multiple Chromium Launches, Need Sticky Window Mar 23, 2025
@ajoslin103
Copy link
Author

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?

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

No branches or pull requests

1 participant