Asi playwright
Browser automation via Playwright MCP. Use for web scraping, taking screenshots, interacting with web pages, testing web UIs, and automating browser tasks. Headless browser support.
install
source · Clone the upstream repo
git clone https://github.com/plurigrid/asi
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/plurigrid/asi "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/playwright" ~/.claude/skills/plurigrid-asi-playwright-0f4605 && rm -rf "$T"
manifest:
skills/playwright/SKILL.mdsource content
Playwright Browser Automation
Control browsers via Playwright MCP server.
When to Use
- Web scraping and data extraction
- Taking screenshots of web pages
- Interacting with web UIs (clicking, typing, navigating)
- Testing web applications
- Automating browser-based workflows
- Filling forms and submitting data
Setup
MCP server configured in
~/.mcp.json:
{ "playwright": { "command": "npx", "args": ["-y", "@anthropic-ai/mcp-server-playwright"] } }
Common Tools
Navigation
- Go to a URLnavigate_page
- Open new browser tabnew_page
- Show open pageslist_pages
Interaction
- Click elementsclick
- Type into input fieldsfill
- Choose from dropdownsselect
- Press keyboard keyspress
Capture
- Screenshot current pagetake_screenshot
- Get page HTMLget_page_content
- Extract visible textget_text
Evaluation
- Run JavaScript in page contextevaluate
Example Workflows
Screenshot a Page
navigate_page(url="https://example.com")take_screenshot()
Fill a Form
navigate_page(url="https://example.com/form")fill(selector="#email", value="user@example.com")fill(selector="#password", value="secret")click(selector="button[type=submit]")
Extract Data
navigate_page(url="https://example.com/data")get_text(selector=".results")
Tips
- Use CSS selectors or XPath for element targeting
- Wait for page loads before interacting
- Browser runs headless by default
- Screenshots are useful for debugging