Connect Playwright to Toolspoke
Navigate and automate websites in a browser sandbox. Toolspoke gives your agents 9 of its actions, and you decide which ones each project allows.
- Connection
- Sandboxed MCP server
- Authentication
- None
- Actions exposed
- 9
- What a call bills
- Sandbox time only
- Adapter
- Maintained by Toolspoke
- Category
- Automation
Connected in three steps
Install Playwright
Open the marketplace in your workspace, add Playwright to the project your agents work in, and it appears on the gateway immediately.
Connect the credential
Nothing to connect. Playwright needs no credential.
Give it to an agent
Describe the job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. It can use every Playwright action the project leaves on.
The whole setup, from Playwright's side to the first question: How to connect Playwright to Toolspoke
Where the agent answers
Slack
Ask it in a channel or a thread, and it replies in the thread it was asked in.
Email
Email it. Each write waits for a person's go-ahead unless that action is allowed in advance.
GitHub
Mention it on a pull request, and it answers there.
Schedule
A routine wakes it on a schedule, or when a new item matches.
Any agent in the project can use Playwright, and only the actions the project leaves on.
What Playwright asks for
Playwright needs no credential. There is nothing to go and fetch: the settings below are optional, and they are configuration rather than secrets.
- User agentOptional
- Optional. Overrides the User-Agent the sandbox browser sends; leave blank for Chromium's default.
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) …
What an agent can do in Playwright
9 actions, each one declared by name in the connector. A workspace policy grants a person all of them, a hand-picked selection, everything on the read side, everything on the write side, or none.
6 read, 3 write, none destructive
Reads
6Fetches data and changes nothing.
open_pageOpen a URL and return the page's accessibility snapshot: headings, links, buttons and form fields with the selectors needed to interact with them. Start here before any click or form action. Pass snapshot_depth on large pages to keep the response small.
find_on_pageOpen a URL and search its accessibility snapshot for text or a regular expression, returning only the matching nodes with a few lines of context. Much cheaper than open_page when you already know what you are looking for.
extract_textOpen a URL and return its rendered text content, optionally scoped to one CSS selector. Use this to read an article, a rendered price or any content that only exists after JavaScript runs.
evaluateOpen a URL and run a JavaScript function inside the page, returning its result. Use it to pull structured data out of the DOM, for example "() => [...document.querySelectorAll('h2')].map(node => node.textContent)". The code runs in the page, not on the server.
console_messagesOpen a URL and return the browser console output it produced, newest last. Use it to find JavaScript errors on a page you are debugging.
network_requestsOpen a URL and list the network requests the page made, with status codes. Static assets are excluded unless you ask for them, so this is a quick way to discover the JSON APIs a page calls.
Writes
3Creates or updates something on the other side.
clickOpen a URL, click one element and return the resulting page snapshot. The selector is a CSS selector or a ref taken from open_page. Because the browser is recreated per call, this always navigates first, chain further steps with run_flow instead of calling click twice.
fill_formOpen a URL, fill one or more fields and optionally submit, then return the resulting page snapshot. Use it for logins, searches and filter forms. Never send credentials you were not explicitly given.
run_flowOpen a URL and run an ordered sequence of interactions in one browser session, then return the final snapshot. This is the only way to chain steps, because the browser does not survive between calls, use it for multi-step flows such as accept a cookie banner, type a search, click a result.
What it will not do
The gateway enforces each of these, so they can be stated flatly.
- It cannot call anything else
- The 9 actions above are the whole of it. A call to any other name is refused before it reaches Playwright rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time.
- Nothing here deletes
- This connector writes to Playwright, but nothing in it deletes or permanently alters anything.
- It reaches no further than your credential
- Toolspoke holds no access to Playwright of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either.
- It never hears from Playwright
- Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Playwright. An agent has to ask.
- It does not smooth over provider limits
- Toolspoke does not retry, queue or back off around Playwright's own rate limits. A call that Playwright refuses comes back to the agent as a failed call.
Before you connect it
What can an agent do in Playwright?
9 named actions: 6 that only read and 3 that write. They include open_page, find_on_page and extract_text. Nothing outside that list is reachable: the connector declares each operation by name rather than proxying whatever an agent asks for.
What credentials does the Playwright connector need?
None at all. Playwright is reachable without one, so there is nothing of yours for Toolspoke to store. The connector does take user agent as optional configuration.
How does an agent get to use Playwright?
Install Playwright in a project and every agent in that project can use the actions the project leaves on. Describe a job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. The agent answers when someone asks it in Slack, emails it or mentions it on a GitHub pull request, or when its routine wakes it.
What does the Playwright connector not do?
The 9 actions above are the whole of it. A call to any other name is refused before it reaches Playwright rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time. This connector writes to Playwright, but nothing in it deletes or permanently alters anything. Toolspoke holds no access to Playwright of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either. Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Playwright. An agent has to ask. Toolspoke does not retry, queue or back off around Playwright's own rate limits. A call that Playwright refuses comes back to the agent as a failed call.
Can I limit which actions an agent can call?
Yes, in two places. The project switches Playwright's actions on and off one at a time, for everyone in the project at once, and the screen groups them by read, write and destructive so turning off everything that deletes is one click. An individual agent key can then be narrowed further, to particular toolkits in a project and to particular actions in a toolkit. Whatever it was granted, a key never reaches a project its owner cannot.
What gets recorded when an agent calls Playwright?
Every attempt, with the agent that made it and the person that agent belongs to, the full request payload, the response payload, the status, the duration, and what the call cost in sandbox time and model tokens. Values whose key names a secret are masked out before the record is shown to anyone. An operation the connector marks as not retained never has its response body written at all, so the gateway keeps no second copy of what was read.
More connectors
Browse automationConnect Playwright to Toolspoke
Add Playwright to a project and give it to an agent.