Better Playwright MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| createPageC | 创建新的浏览器页面 |
| activatePageC | 激活指定的页面 |
| closePageC | 关闭指定的页面 |
| listPagesB | 列出所有管理的页面(包含标题和URL) |
| closeAllPagesB | 关闭所有管理的页面 |
| listPagesWithoutIdB | 列出所有未被管理的页面 |
| closePagesWithoutIdB | 关闭所有未被管理的页面 |
| closePageByIndexC | 通过索引关闭页面 |
| browserClickC | 点击页面元素 |
| browserTypeC | 在页面元素中输入文本 |
| browserHoverC | 悬停在页面元素上 |
| browserSelectOptionC | 在下拉框中选择选项 |
| browserPressKeyC | 按键盘按键 |
| browserFileUploadC | 上传文件到指定元素 |
| browserHandleDialogC | 处理浏览器对话框 |
| browserNavigateC | 导航到指定URL |
| browserNavigateBackC | 返回到上一页 |
| browserNavigateForwardC | 前进到下一页 |
| scrollToBottomC | 滚动到页面或元素底部 |
| scrollToTopB | 滚动到页面或元素顶部 |
| waitForTimeoutC | 等待指定毫秒数 |
| waitForSelectorC | 等待指定选择器的元素出现 |
| getElementHTMLC | 通过xp引用获取元素的outerHTML结构,用于调试选择器 |
| getScreenshotB | 获取页面截图并保存到临时目录,返回文件路径 |
| getPDFSnapshotC | 获取页面的PDF快照 |
| getPageSnapshotC | 获取页面的语义化简化快照,返回清晰的缩进结构 |
| downloadImageC | 下载图片到本地临时目录,返回本地文件路径 |
| captureSnapshotB | 捕获网页的完整快照,支持滚动、等待和自动修剪功能 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 28 tools
Most tools have distinct purposes, but there is some overlap in page management: closePage, closePageByIndex, and closePagesWithoutId could be confusing, as they all close pages with slight variations. Similarly, listPages and listPagesWithoutId serve similar listing functions. However, the core browser interaction tools (click, type, navigate, etc.) are clearly differentiated.
Tool names follow a highly consistent snake_case pattern with clear verb_noun structure (e.g., browser_click, create_page, wait_for_selector). All tools adhere to this convention, making them predictable and easy to parse for an agent.
With 28 tools, the count is on the high side for a Playwright automation server. While it covers many operations, it may feel heavy and could potentially be streamlined by consolidating overlapping tools (e.g., multiple close and list functions).
The tool set provides comprehensive coverage for web automation tasks, including navigation, interaction (click, type, upload), waiting, scrolling, snapshot capture (HTML, PDF, screenshot), and page management (create, close, list). No obvious gaps are present for typical Playwright workflows.