1. Install Meshagent CLI
2. Sign Up & Authenticate
- Sign up and authenticate per instructions in the Meshagent CLI Getting Started Guide.
3. Start the MCP Playwright Server in a Room
- This starts a Meshagent Room with the Playwright MCP server available.
- The Room (and all running services) will clean up automatically if left inactive.
4. Launch a Chatbot with Playwright Toolkit in the Room
- This starts a chatbot in the Room, with access to the Playwright tool suite.
- Multiple toolkits can be made available to the same agent in a Room.
- The output of this command will include a join link for the Room.
5. Try it Out!
- Open the Room invitation link in your browser.
- Send a message to the
mcp-playwright
agent and interact with the Playwright server tools live!
Project-Level Deployment (Persistent Services)
To make the MCP Playwright server and chatbot available in every Room created in your Meshagent project (ideal for production):1. Deploy the Playwright MCP Service Globally
2. Deploy a Chatbot Service with Playwright Toolkit
- These services join every Room in your project on creation.
- No need to run the MCP server/chatbot locally or as one-off processes!
- Tools and chatbots are always present for users as soon as they enter a Room.
Tools Available
Tools Summary
The following tools are available via the Playwright MCP server, empowering agents and chatbots to interact with browsers programmatically:Tool | Short Description |
---|---|
browser_click | Click |
browser_close | Close browser |
browser_console_messages | Get console messages |
browser_drag | Drag mouse |
browser_file_upload | Upload files |
browser_generate_playwright_test | Generate a Playwright test |
browser_handle_dialog | Handle a dialog |
browser_hover | Hover mouse |
browser_install | Install the browser specified in the config |
browser_navigate | Navigate to a URL |
browser_navigate_back | Go back |
browser_navigate_forward | Go forward |
browser_network_requests | List network requests |
browser_pdf_save | Save as PDF |
browser_press_key | Press a key |
browser_resize | Resize browser window |
browser_select_option | Select option |
browser_snapshot | Page snapshot |
browser_tab_close | Close a tab |
browser_tab_list | List tabs |
browser_tab_new | Open a new tab |
browser_tab_select | Select a tab |
browser_take_screenshot | Take a screenshot |
browser_type | Type text |
browser_wait_for | Wait for |
Tools Details
browser_click
Perform click on a web pageParameters:
element
(string
): Human-readable descriptionref
(string
): Target element reference
browser_close
Close the page
browser_console_messages
Returns all console messages
browser_drag
Drag and drop between two elementsParameters:
endElement
,endRef
: Target description and referencestartElement
,startRef
: Source description and reference
browser_file_upload
Upload file(s)Parameters:
paths
(array
): Absolute paths to files (single or multiple)
browser_generate_playwright_test
Generate Playwright testParameters:
description
(string
): Test descriptionname
(string
): Test namesteps
(array
): Test steps
browser_handle_dialog
Handle dialog (accept/prompt)Parameters:
accept
(boolean
): Accept dialogpromptText
(string
, optional): Prompt text
browser_hover
Hover over elementParameters:
element
(string
): Human-readable descriptionref
(string
): Target element reference
browser_install
Install browser specified in config
browser_navigate
Navigate to URLParameters:
url
(string
): URL to navigate
browser_navigate_back
Go back
browser_navigate_forward
Go forward
browser_network_requests
List all network requests
browser_pdf_save
Save page as PDFParameters:
filename
(string
, optional): PDF file name (defaults supplied)
browser_press_key
Press keyboard keyParameters:
key
(string
): Name or character
browser_resize
Resize browser windowParameters:
height
,width
(number
): Dimensions
browser_select_option
Select dropdown option(s)Parameters:
element
(string
),ref
(string
): Dropdown referencevalues
(array
): Option values
browser_snapshot
Accessibility snapshot of current page
browser_tab_close
Close a tabParameters:
index
(number
, optional): Tab index
browser_tab_list
List browser tabs
browser_tab_new
Open new tabParameters:
url
(string
, optional): Optional URL for new tab
browser_tab_select
Select tab by indexParameters:
index
(number
): Tab index
browser_take_screenshot
Take screenshotParameters:
element
(string
, optional): Element to screenshotfilename
(string
, optional): Screenshot file nameraw
(boolean
, optional): PNG (raw) outputref
(string
, optional): Element reference
browser_type
Type textParameters:
element
,ref
(string
): Target elementtext
(string
): Text to typeslowly
(boolean
, optional): One character at a timesubmit
(boolean
, optional): Press Enter after
browser_wait_for
Wait for text or delayParameters:
text
(string
, optional): Wait for text to appeartextGone
(string
, optional): Wait for text to disappeartime
(number
, optional): Wait in seconds
More Information & Resources
- Meshagent Website: https://www.meshagent.com/
- Documentation: https://docs.meshagent.com
- Meshagent MCP Tool Image: https://hub.docker.com/r/meshagent/mcp-playwright