Spiceman161

Playwright MCP

AI 智慧體v1.0.0
作者:Spiceman161更新於 2026-05-11playwright-mcp@clawhub_spiceman161/playwright-mcp
任務自動化#Playwright#Browser Automation

據 AlphaMoat 統計,截至 2026-10,Playwright MCP 累計下載 86,966 次、獲 169 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 292 位,在「AI 智慧體」分類(1,632 個)中排名第 63 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
8.7萬
星標
169
全站下載量排名
#292
全站前 3% · 「AI 智慧體」前 4%
平台累計下載星標評論
ClawHub ↗4.7萬1602
SkillHub ↗8.7萬169—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

用 browser_navigate 開啟頁面,再配合點選、輸入、下拉選擇與文字提取完成網頁操作和資料抓取,可控制 Chromium、Firefox 或 WebKit。首次使用要先安裝瀏覽器,檔案訪問預設限於工作區,忽略 HTTPS 錯誤需要顯式開啟。

資料釋出於 2026-10-26

可以用來做什麼

  • 填寫表單並讀取提交後的頁面文字
  • 用 browser_evaluate 在頁面裡跑指令碼取結構化資料

什麼時候用

  • 需要真實瀏覽器互動、而不是純 HTTP 請求時
  • 想在 Chromium 之外驗證 Firefox 或 WebKit 的行為時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

開啟登入頁填入賬號,確認頁面出現歡迎資訊
把這個頁面裡的表格抓成 JSON 列表

使用條件

依據技能文件中的宣告整理,未經實際安裝或執行驗證。

配置要求
  • 首次使用前需安裝要執行的瀏覽器。
文件宣告支援的系統
Linux / macOS / Windows

月度資料趨勢

累計下載8.7萬
3.1萬6.1萬9.1萬2026-03 · 累計下載 3.5萬2026-05 · 累計下載 4.2萬2026-06 · 累計下載 4.4萬2026-07 · 累計下載 4.5萬2026-08 · 累計下載 5.5萬2026-09 · 累計下載 6萬2026-10 · 累計下載 8.7萬26-0326-0926-10
星標169
1161451732026-03 · 星標 1202026-05 · 星標 1542026-06 · 星標 1622026-07 · 星標 1662026-08 · 星標 1692026-09 · 星標 1692026-10 · 星標 16926-0326-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-108.7萬—169
2026-096萬—169
2026-085.5萬+21.6%169
2026-074.5萬+3.0%166
2026-064.4萬+3.2%162
2026-054.2萬—154
2026-033.5萬—120

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

4.0 KB · ClawHub v1.0.0
---
name: playwright-mcp
description: Browser automation via Playwright MCP server. Navigate websites, click elements, fill forms, extract data, take screenshots, and perform full browser automation workflows.
metadata: {"openclaw":{"emoji":"🎭","os":["linux","darwin","win32"],"requires":{"bins":["playwright-mcp","npx"]},"install":[{"id":"npm-playwright-mcp","kind":"npm","package":"@playwright/mcp","bins":["playwright-mcp"],"label":"Install Playwright MCP"}]}}
---

# Playwright MCP Skill

Browser automation powered by Playwright MCP server. Control Chrome, Firefox, or WebKit programmatically.
展開全部(共 166 行)
## Installation

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

Install browsers (first time):
```bash
npx playwright install chromium
```

## Quick Start

### Start MCP Server (STDIO mode)
```bash
npx @playwright/mcp
```

### Start with Options
```bash
# 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 Use Cases

### 1. Navigate and Extract Data
```python
# 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. Form Interaction
```
1. browser_navigate to form URL
2. browser_type into input fields
3. browser_click to submit
4. browser_get_text to verify result
```

### 3. Data Extraction
```
1. browser_navigate to page
2. browser_evaluate to run extraction script
3. Parse returned JSON data
```

## MCP Tools Reference

| Tool | Description |
|------|-------------|
| `browser_navigate` | Navigate to URL |
| `browser_click` | Click element by selector |
| `browser_type` | Type text into input |
| `browser_select_option` | Select dropdown option |
| `browser_get_text` | Get text content |
| `browser_evaluate` | Execute JavaScript |
| `browser_snapshot` | Get accessible page snapshot |
| `browser_close` | Close browser context |
| `browser_choose_file` | Upload file |
| `browser_press` | Press keyboard key |

## Configuration Options

```bash
# 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

### Login to 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 Table 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

- By default restricts file system access to workspace root
- Host validation prevents navigation to untrusted domains
- Sandboxing enabled by default (use `--no-sandbox` with caution)
- Service workers blocked by default

## Troubleshooting

```bash
# Update browsers
npx playwright install chromium

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

# Check installation
playwright-mcp --version
```

## Links

- [Playwright Docs](https://playwright.dev)
- [MCP Protocol](https://modelcontextprotocol.io)
- [NPM Package](https://www.npmjs.com/package/@playwright/mcp)

「AI 智慧體」分類下的熱門技能

Spiceman161 的其他技能

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。