Playwright chrome browser

From stevehuang0115/crewly · View interactive version

Playwright chrome browser is an AI agent skill from the GitHub repository stevehuang0115/crewly. Fallback only: use the remote-browser skill (Crewly in Chrome) first; use this only when Crewly in Chrome is not drivable. Enable browser automation capabilities using Playwright MCP server. This allows agents to interact with web pages, take screenshots, fill forms, and perform automated browser ta

How to use this skill

Skill file

Playwright Chrome Browser

This skill enables browser automation capabilities through the Playwright MCP server for Claude Code.

Prerequisites

Crewly auto-configures the Playwright MCP server when browser automation is enabled in Settings (enableBrowserAutomation: true). The .mcp.json file is generated automatically during agent startup.

For manual installation:

npx @playwright/mcp@latest

Capabilities

When this skill is enabled, agents can:

Usage

The browser automation tools are available through MCP (Model Context Protocol) when the Playwright MCP server is configured in Claude Code.

Available Tools

Comparison with Chrome Browser Skill

| Feature | Playwright MCP | Chrome Extension |

|---------|---------------|------------------|

| Installation | MCP server install | Chrome extension |

| Browser visibility | Headless (invisible) | Visible browser |

| Speed | Faster (no rendering) | Real browser speed |

| Reliability | Very stable | Depends on extension |

| Use case | Testing, scraping | Interactive automation |

Best Practices

  1. Always take screenshots after navigation to verify page state
  2. Use specific selectors - prefer IDs and data-testid attributes
  3. Wait for elements before interacting with them
  4. Handle errors gracefully - pages may load slowly or fail
  5. Close browser when done to free resources

Example Workflow

1. Navigate to the target URL
2. Wait for page to load
3. Take a screenshot to verify state
4. Interact with elements (click, fill, select)
5. Take another screenshot to verify result
6. Extract needed data
7. Close the browser

Troubleshooting

MCP Server Not Found

If you get an error about the MCP server not being available:

  1. Verify enableBrowserAutomation is true in Crewly Settings
  2. Check that .mcp.json exists in the project root with a playwright entry
  3. Restart the agent session to regenerate MCP config
  4. Manual fallback: npx @playwright/mcp@latest

Element Not Found

Screenshot Failures

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.