首页龙虾技能列表 › Playwright MCP 1.0.0 — Playwright MCP

🎭 Playwright MCP 1.0.0 — Playwright MCP

v1.0.0

Playwright MCP 工具 1.0.0。

0· 487·19 当前·20 累计
by @itsjustfred (itsjustFred)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/2/26
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill's requirements, instructions, and files align with a Playwright MCP browser-automation toolset and do not request unrelated credentials or suspicious installs, but it exposes powerful browser-level capabilities that you should use with caution.
评估建议
This skill appears to be what it claims: a Playwright MCP front-end. Before installing, consider these practical security steps: (1) Verify the npm package (@playwright/mcp) is the expected upstream and review its release page; (2) Restrict the MCP server with --allowed-hosts and avoid using --no-sandbox or --ignore-https-errors unless necessary; (3) Treat browser_evaluate and file-upload tools as sensitive: do not allow the agent to execute arbitrary JS on pages that handle secrets or to upload...
详细分析 ▾
用途与能力
Name/description match the declared requirements: the skill needs playwright-mcp/npx and documents installing @playwright/mcp. No unrelated binaries, env vars, or credentials are requested.
指令范围
SKILL.md stays on-topic for browser automation, but includes powerful primitives (browser_evaluate to run arbitrary JS, browser_choose_file to upload files, navigation to arbitrary URLs). Those capabilities are expected for a browser automation skill but can be used to exfiltrate data or access internal endpoints if misused. The doc mentions allowed-hosts / blocked-origins and sandboxing but leaves defaults and enforcement unclear.
安装机制
No embedded install script is executed by the registry; installation is via npm/npx (@playwright/mcp) which is the expected mechanism for Playwright tools. No ad-hoc downloads or obscure URLs are used.
凭证需求
The skill requires no environment variables or credentials, which is proportionate to its stated functionality.
持久化与权限
always is false and model invocation is allowed (the platform default). The skill does not request persistent system-wide privileges or modify other skills' configurations.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

🖥️ OSLinux · macOS · Windows

版本

latestv1.0.02026/2/23

- Initial release of the playwright-mcp skill for browser automation via Playwright MCP server. - Provides tools to navigate websites, interact with forms, click elements, extract data, and take screenshots. - Supports command-line options for browser selection, headless mode, viewport sizing, security controls, and output management. - Includes detailed quick start and usage examples for common automation workflows. - Security features include restricted file system access, host validation, and sandboxing by default.

● 无害

安装命令 点击复制

官方npx clawhub@latest install playwright-mcp-1-0-0
镜像加速npx clawhub@latest install playwright-mcp-1-0-0 --registry https://cn.clawhub-mirror.com

技能文档

Browser automation powered by Playwright MCP server. Control Chrome, Firefox, or WebKit programmatically.

Installation

npm install -g @playwright/mcp
# Or
npx @playwright/mcp

Install browsers (first time):

npx playwright install chromium

Quick 开始

开始 MCP Server (STDIO mode)

npx @playwright/mcp

开始 带有 Options

# Headless mode
npx @playwright/mcp --headless

# Specific browser npx @playwright/mcp --browser firefox

# With viewport npx @playwright/mcp --viewport-size 1280x720

# Ignore HTTPS errors npx @playwright/mcp --ignore-https-errors

Common 使用 Cases

1. Navigate 和 Extract Data

# MCP tools available:
# - browser_navigate: Open URL
# - browser_click: Click element
# - browser_type: Type text
# - browser_select_option: Select dropdown
# - browser_get_text: Extract text content
# - browser_evaluate: Run JavaScript
# - browser_snapshot: Get page structure
# - browser_close: Close browser

2. 表单 Interaction

1. browser_navigate to form URL
  • browser_type into input fields
  • browser_click to submit
  • browser_get_text to verify result

3. Data Extraction

1. browser_navigate to page
  • browser_evaluate to run extraction script
  • Parse returned JSON data

MCP Tools Reference

ToolDescription
browser_navigateNavigate to URL
browser_clickClick element by selector
browser_typeType text into input
browser_select_optionSelect dropdown option
browser_get_textGet text content
browser_evaluateExecute JavaScript
browser_snapshotGet accessible page snapshot
browser_closeClose browser context
browser_choose_fileUpload file
browser_pressPress keyboard key

Configuration Options

# Security
--allowed-hosts example.com,api.example.com
--blocked-origins malicious.com
--ignore-https-errors

# Browser settings --browser chromium|firefox|webkit --headless --viewport-size 1920x1080 --user-agent "Custom Agent"

# Timeouts --timeout-action 10000 # Action timeout (ms) --timeout-navigation 30000 # Navigation timeout (ms)

# Output --output-dir ./playwright-output --save-trace --save-video 1280x720

Examples

登录 到 Website

browser_navigate: { url: "https://example.com/login" }
browser_type: { selector: "#username", text: "user" }
browser_type: { selector: "#password", text: "pass" }
browser_click: { selector: "#submit" }
browser_get_text: { selector: ".welcome-message" }

Extract 表 Data

browser_navigate: { url: "https://example.com/data" }
browser_evaluate: { 
  script: "() => { return Array.from(document.querySelectorAll('table tr')).map(r => r.textContent); }" 
}

Screenshot

browser_navigate: { url: "https://example.com" }
browser_evaluate: { script: "() => { document.body.style.zoom = 1; return true; }" }
# Screenshot saved via --output-dir or returned in response

Security Notes

  • 由 默认 restricts file system access 到 workspace root
  • Host validation prevents 导航 到 untrusted domains
  • Sandboxing 已启用 由 默认 (使用 --否-sandbox 带有 caution)
  • 服务 workers blocked 由 默认

Troubleshooting

# Update browsers
npx playwright install chromium

# Debug mode npx @playwright/mcp --headless=false --output-mode=stdout

# Check installation playwright-mcp --version

Links

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务