Playwriter consists of three components: the Chrome extension (required), the CLI tool (recommended), and an optional skill for AI agents.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/remorses/playwriter/llms.txt
Use this file to discover all available pages before exploring further.
Chrome extension
Install from Chrome Web Store
Install the Playwriter extension from the Chrome Web Store.
Enable on a tab
Click the extension icon on any tab. The icon turns green when the tab is connected and ready for automation.
CLI tool
The CLI is the recommended way to use Playwriter. It provides session management and code execution.Install globally
When using npx or bunx, always use
@latest for the first session command to ensure you’re using the latest version.Verify installation
Create a test session and run a simple command:You should see the page title printed to the console.
Skill for AI agents
Install the Playwriter skill so AI agents know how to use the tool effectively.MCP setup (alternative)
If you prefer to use Playwriter as an MCP server instead of the CLI, see the MCP setup guide. Add to your MCP client settings:Optional: Enable automatic tab capture
For screen recording without manual extension clicks, add Chrome flags:Next steps
Quickstart
Run your first automation
CLI usage
Learn session management and code execution