playwriter
Installation
Summary
Control your existing Chrome browser via Playwright code snippets in a stateful local sandbox.
- Connects to your running Chrome instance instead of launching a new one, ideal for JavaScript-heavy sites like Instagram, Twitter, and pages with login walls or lazy-loaded content
- Executes Playwright code in a stateful sandbox with session management, context variables, and utility functions
- Requires reading full documentation via
playwriter skillcommand before use to understand timeout configuration, selector strategies, and common pitfalls - Use single quotes for
-eargument to prevent bash interpretation of special characters in JavaScript code
SKILL.md
REQUIRED: Read Full Documentation First
Before using playwriter, you MUST run this command:
playwriter skill # IMPORTANT! do not use | head here. read in full!
This outputs the complete documentation including:
- Session management and timeout configuration
- Selector strategies (and which ones to AVOID)
- Rules to prevent timeouts and failures
- Best practices for slow pages and SPAs
- Context variables, utility functions, and more
Do NOT skip this step. The quick examples below will fail without understanding timeouts, selector rules, and common pitfalls from the full docs.
Read the ENTIRE output. Do NOT pipe through head, tail, or any truncation command. The skill output must be read in its entirety — critical rules about timeouts, selectors, and common pitfalls are spread throughout the document, not just at the top.