{"schemaVersion":"opencli.cli.v1","slug":"playwright","name":"Playwright","shortName":"playwright","binaryName":"playwright","maker":{"slug":"microsoft","name":"Microsoft","type":"org","url":"https://microsoft.com","officialPlatformMaker":true,"featuredBuilder":false},"category":"Browser Automation","description":"The official CLI from Microsoft. Browser testing, automation, and headless scripts from the terminal.","tagline":"Browser testing, automation, and headless scripts from the terminal.","install":{"packageManager":"npm","command":"npm i -D @playwright/test","packageName":null,"npmPackage":"@playwright/test","brewFormula":null,"brewCask":null,"crateName":null,"pypiPackage":null,"goPackage":null,"dockerImage":null},"verify":{"command":"playwright --version","signal":"playwright responds locally and is ready for the first real command."},"quickStart":"npx playwright test","exampleWorkflow":["npx playwright test"],"agent":{"readiness":{"label":"Usable with guardrails","score":50,"reasons":["Supports non-interactive/scripted use.","Works well in CI or repeatable automation."],"guardrails":["Prefer small commands and ask the agent to summarize plain text output.","Start read-only, then ask before mutations."]},"packUrl":"https://opencli.co/cli/playwright/agent.md","packMarkdown":"# OpenCLI Agent Pack: Playwright\n\nUse this when an AI agent needs to work with `playwright`.\n\n## What this CLI is for\nThe official CLI from Microsoft. Browser testing, automation, and headless scripts from the terminal.\n\nBest for: browser testing, automation, and headless scripts from the terminal.\n\n## Agent readiness\nUsable with guardrails (50/100)\n- Supports non-interactive/scripted use.\n- Works well in CI or repeatable automation.\n\n## Install\n```sh\nnpm i -D @playwright/test\n```\n\n## Verify before real work\n```sh\nplaywright --version\n```\nExpected signal: playwright responds locally and is ready for the first real command.\n\n## Safe starting commands\n```sh\nplaywright --version\n```\n\n```sh\nnpx playwright test\n```\n\n## Guardrails for agents\n- Prefer small commands and ask the agent to summarize plain text output.\n- Start read-only, then ask before mutations.\n\n## Suggested agent instruction\nYou may use Playwright (`playwright`) for browser testing, automation, and headless scripts from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.\n\nSource: OpenCLI\n"},"fit":{"bestFor":"browser testing, automation, and headless scripts from the terminal.","useThisIf":"You need browser automation in both local dev and CI.","skipIf":"You don't work with browser automation.","whatHappensNext":"Run `npx playwright test` and see what comes back."},"capabilities":{"agentFriendly":true,"supportsJsonOutput":false,"supportsNonInteractive":true,"supportsDryRun":false,"requiresAuth":false,"requiresNetwork":false,"ciFriendly":true,"localFirst":false,"destructivePotential":"medium"},"taxonomy":{"useCases":["Browser testing","Automation","Headless scripts"],"aliases":["playwright cli"],"keywords":["browser tests automation"],"tags":["official","agent-friendly","ci-friendly"]},"links":{"website":"https://playwright.dev","github":"https://github.com/microsoft/playwright","docs":"https://playwright.dev/docs/intro","opencli":"https://opencli.co/cli/playwright","markdown":"https://opencli.co/cli/playwright/agent.md","json":"https://opencli.co/cli/playwright.json"},"metrics":{"githubStars":90511,"latestRelease":"2026-06-08T10:37:49Z","license":"Apache-2.0","metricLabel":"npm weekly downloads","metricValue":38641569,"metricSource":"npm","metricAsOf":"2026-06-08T11:00:47.861Z"}}