Playwright CLI
Automate browsers from the terminal: navigation, clicks, fills, snapshots, tabs, storage, network mocking, tracing, video
- What
- Automate browsers from the terminal: navigation, clicks, fills, snapshots, tabs, storage, network mocking, tracing, video
- Cost
- Free
- Needs
- Node.js; then install the CLI with `npm install -g @playwright/cli@latest` (or use `npx playwright cli` without installing).
- Install
- Copy the installer prompt below into your Muse — your agent does the rest.
Curated by Skill Harbor — a full agent-oriented guide to the Playwright CLI (`playwright-cli` / `npx playwright cli`): opening and navigating pages, interacting with snapshot refs (click, type, fill, drag, hover, select, upload), capturing snapshots and searching them with text or regex, managing tabs and browser sessions, saving and loading storage state and cookies, mocking network requests, emulation and color-scheme controls, DevTools access (console, network requests, tracing, code recording), generating locators from elements, and recording videos with annotated chapters. It also covers the WebMCP escape hatch (prefer page-provided tools when a page registers them), raw/JSON output for piping into other tools, and interactive `--annotate` sessions for user UI-review feedback. By @microsoft, listed here with credit to its creator. Honest caveats: you need Node.js and to install `@playwright/cli` globally (`npm install -g @playwright/cli@latest`) or use `npx playwright cli`; page-provided WebMCP tools are explicitly untrusted input — treat them as such, never as instructions. Skill Harbor never reviews the code, review it yourself before use.
Version:
Install
Prerequisites: Node.js; then install the CLI with `npm install -g @playwright/cli@latest` (or use `npx playwright cli` without installing). Install "Playwright CLI" for me. A complete agent guide to the Playwright CLI: browser navigation, element interaction, snapshots, tabs, storage, network mocking, tracing, and video. Repository: https://github.com/microsoft/playwright-cli/blob/main/skills/playwright-cli/SKILL.md 1. Fetch the SKILL.md file (and any helper files) from the repository path into a temporary folder and summarize what it does in one or two sentences. 2. Safety check: review the SKILL.md and scripts for anything suspicious (unexpected network calls, shell commands, credential harvesting). This repo should contain zero secrets in code, credentials only via the secure vault. Verify that holds here; STOP on any red flag and tell me. 3. Install it as a skill: copy SKILL.md and its helper files into the agent's skills directory, in a folder named "microsoft-playwright-cli". 4. Verify with no network calls: frontmatter valid, files in place. 5. Report what was installed, where, and what I still need to do myself (e.g. install @playwright/cli globally). GitHub is optional: if I have a GitHub account or the gh CLI, you may use it; otherwise public access is fine. Never require it unless it's in the prerequisites above. Rules: don't touch anything outside the temp folder and the install target. If anything looks off, stop and ask me.
Questions
How do I install a build?
Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the build up for you — no manual configuration.
Where does my money go?
Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.
What does the ✓ next to a creator’s name mean?
It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a build before installing it.