From playwright
Browser automation. MUST invoke before calling Playwright. Use when browsing websites, checking UI, filling forms, or automating web workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/playwright:browsingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**ALWAYS use a subagent for browser tasks.** Never call browser tools directly in main context — the snapshots consume thousands of tokens per page.
ALWAYS use a subagent for browser tasks. Never call browser tools directly in main context — the snapshots consume thousands of tokens per page.
Task tool config:
subagent_type: general-purpose
model: haiku
The subagent does all navigation and interaction, then returns a concise summary.
Sessions persist per project. All tool calls in a conversation share one browser instance.
When the user needs to see or interact with the browser (OAuth, CAPTCHAs, login), open a headed browser sharing the same profile. Close the headless browser first with browser_close, then launch via Bash with run_in_background: true:
const pw = require('<playwright-path>');
(async () => {
const ctx = await pw.chromium.launchPersistentContext('<profile-path>', {
headless: false, channel: 'chrome',
args: ['--disable-session-crashed-bubble', '--hide-crash-restore-bubble']
});
const page = ctx.pages()[0] || await ctx.newPage();
await page.goto('<url>');
await page.waitForEvent('close').catch(() => {});
await ctx.close();
})();
To find the values:
find ~/.npm/_npx -path '*/@playwright/mcp' -type d → sibling playwright package~/Library/Caches/ms-playwright/mcp-chrome-<hash> where hash = first 7 chars of SHA-256 of project root pathThe script waits in the background until the user closes the window, then cleans up so headless can resume.
browser_fill_form for multiple fields, not browser_type per fieldCheck UI: Navigate → screenshot → analyze
Submit form: Snapshot (get refs) → browser_fill_form → click submit → screenshot (verify)
Debug visuals: Full-page screenshot → element screenshot → console messages
npx claudepluginhub lineofflight/claude-code-plugins --plugin playwrightAutomates browser tasks via Playwright CLI wrapper: navigate sites, snapshot elements, fill forms, click/type, screenshot, trace, extract data, debug UI flows from terminal.
Automates browsers via Playwright CLI shell commands: navigate pages, interact with elements (click, fill, type), capture screenshots/snapshots/PDFs, manage tabs for web testing.
Automates browser tasks via Playwright CLI for AI agents: navigate pages, take snapshots/screenshots, fill forms, click elements from command line. Use with shell access.