playwrightlisted
Install: claude install-skill UtsavBalar1231/oh-my-claudeagent
# Playwright Browser Automation
**Task**: $ARGUMENTS
No task specified → ask user what browser task to perform.
Browser automation via Playwright MCP — testing, scraping, verification, interaction.
## Prerequisites
The Playwright MCP server must be configured. Add to your project's `.mcp.json`:
```json
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
}
```
Or for headed mode (visible browser):
```json
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest", "--headless=false"]
}
}
}
```
## Available MCP Tools
When the Playwright MCP server is running, these tools become available:
### Navigation
- `browser_navigate` — Go to a URL
- `browser_go_back` / `browser_go_forward` — Browser history navigation
- `browser_wait` — Wait for page load or condition
### Interaction
- `browser_click` — Click an element (uses accessibility snapshot selectors)
- `browser_type` — Type text into focused element
- `browser_fill` — Fill form field (clears existing value first)
- `browser_select_option` — Select dropdown option
- `browser_hover` — Hover over element
- `browser_drag` — Drag from one element to another
- `browser_press_key` — Press keyboard key (Enter, Tab, Escape, etc.)
### Observation
- `browser_snapshot` — Get accessibility tree snapshot (preferred over screenshot)
- `browser_screenshot` — Take a PNG screenshot
- `browser_get_text` — Extract text cont