Connectors

Playwright

Let Lyna AI drive a real browser in your project's cloud machine, to open pages, click, fill forms and read what comes back.

Add Playwright so Lyna AI can drive a real browser: open a page, click, fill a form, and read what happened. The browser runs in your project's cloud machine, so it never touches your own browser or your own sign-ins.

What it lets you do

  • Open a page and go back.
  • Click, double-click and fill several form fields.
  • Take a screenshot of a page.
  • List the network requests of a page and read one in detail.
  • List, open, close and switch tabs.
ItemDetail
What it asks forNothing. No key and no sign-in.
Who pays the providerNobody: it needs no provider account. It is an open-source server from Microsoft.
Do actions change real data?It can. A form submitted on a live site is really submitted.
Where it runsIn your project's cloud machine, never on your computer.
Who uses itLyna AI while it builds, in Build mode. Your published app does not use it.

What you need before you start

  • No Playwright account: this connector needs no key and no sign-in.
  • A test account on any site that asks for a sign-in. Never a personal account.
  • The right to test the site you point it at, and a test environment if you can.
  • Edit access to your Lyna project.
  • An open project: a local connector starts in the project's cloud machine.

Permissions on the sites you open

Playwright has no permission model of its own and no account. What the browser can do is whatever the site allows a visitor, or the account you sign in with. Its makers state that it is not a security boundary, so the limit comes from where you point it.

TaskWhat you need
Open a public pageNothing
Reach a page behind a sign-inA test account on that site. Sign-ins stay in the browser profile
Submit a form or click on a live siteThe right to do it there. There is no undo
See your computer or your own browser tabsNot possible: it runs in the project's cloud machine

See Playwright MCP on GitHub.

Ways to connect

On the connector's page. No account, no key and no sign-in. The connector works once connected.

Who owns the account? Nobody: Playwright has no account in this setup.

Who can use it? Only you, in the projects you link it to, until you change it. On the connector's page, Who can use it also offers Only this project. The whole workspace is not offered, because a local server runs in your project's cloud machine. See Who can use a connection.

Set it up

  1. Open the connector

    Open the + menu of the chat and choose Connectors. Find Playwright with the search field or under Developer tools, then open its page.

  2. Connect

    Choose Connect. The New connection page opens and reads "Nothing to set up. Connect and it is ready." Choose Connect at the bottom of the page. Sharing, just above, sets who can use it.

  3. Read the result

    Lyna starts the server in the project's cloud machine, so the project has to be open. It can take up to 20 seconds. Connected means Lyna can use it.

Check it works

The test starts the Playwright server in your project's cloud machine, asks for its tools and closes it. Connected proves that it started and answered. A pass does not prove access to every piece of data. A pass shows the server started and listed its tools. To be sure a browser opens, try a real page.

To check for real, ask for something you know exists:

What to ask Lyna AI

Type these in the chat, in Build mode, and adjust the names to yours. Once it is connected, Use Playwright on its page starts a message for you.

What you build or doWhat to typeWhat happens
Walk through a sign-up"Open my published site, go through the sign-up form with test data, and tell me what happens at each step."Lyna AI opens the page and fills the form. Each action asks for approval.
Find broken requests"Open this page and list the network requests that fail."It opens the page and lists the failed requests.
Compare with a design"Take a screenshot of my pricing page and compare it with the design I described."It takes the screenshot and tells you what differs.
Check a link path"Open the home page, click Pricing, and tell me the page title you land on."It follows the link and reports the title.
Read a page's structure"Open my contact page and list the form fields and their labels."It reads the page structure and lists them.
Test several tabs"Open the docs and the pricing page in two tabs and compare their headers."It opens both and compares them.
Check a page element"Open my home page and tell me whether the menu button is in the page structure."It reads the page and answers in the chat.

Approvals and tool switches

Before a call, Lyna AI shows the tool and what it asks. You choose Deny, Allow once, Always allow this tool or Always allow this connector. A tool its server marks as read-only does not ask. A changed or new tool asks again, and Ask again on the connector's page takes a choice back.

Under What Lyna AI can use, each tool has a switch. Lyna AI stops using a tool you turn off, in your chats in this project.

Stay safe

What a connector answers reaches the AI as data, never as instructions. Read each approval before you accept it.

  • Playwright reads a page as structured data, and that page is outside your control. Its makers state that it is not a security boundary.
  • Point it at sites you own or test accounts. Do not sign in to a personal account through it: the browser profile keeps sign-ins by default.
  • Read the approval before a click or a form on a live site. There is no undo.

Limits

  • It works from the page structure. A screenshot can be read, but it cannot be the basis of an action.
  • It runs in the cloud machine, so it cannot see your computer or the tabs of your own browser.
  • One browser profile serves one browser at a time.
  • See Playwright MCP on GitHub.
  • Connector tools run in Build mode. Plan and Ask do not run them.

Troubleshooting

What you seeWhat it means and what to do
The project's cloud machine is off. Open the project, then test again.This connector runs in that machine. Open the project, then choose Test connection.
The server stopped before it answered. Check its command and settings.Choose Test connection. If it stops again, choose Delete connection under More options, then Connect.
The project's cloud machine is installing the browser this server needs. Test again in a minute.Wait a minute, then choose Test connection.
The project's cloud machine has no browser, and installing one failed. Test again to retry.Choose Test connection to try the install again.
Not tested yetNo test has answered. Choose Test connection.
Connection failedThe page says why next to it. If the server did not answer, choose Test connection.
New tools to reviewThe server changed its list of tools, so Lyna stops using it until you decide. Read the list, then choose Approve new tools.
Turned offLyna AI does not use it. Choose Turn on.
A click lands on the wrong elementName the element by its visible text in your request.
A page asks you to sign inUse a test account on that site, never a personal one.
The browser is still signed inThe browser profile keeps sign-ins by default. Ask Lyna AI to sign out of the site, and use test accounts only.

Disconnect

Turn off stops Lyna from using the connector and keeps your settings. Remove from this project, under More options, takes it out of this project only, and shows when another project uses it. Delete connection, in the same menu, removes it from every project, with what it stored, and says first how many projects lose it. Playwright holds no account of yours, so there is nothing else to end.

Need help?

Ask the team, read what changed, or learn from the blog.