instalar
npm install -g @playwright/cli@latest && playwright-cli install --skills O conteúdo abaixo é o próprio SKILL.md, que fica em inglês porque é o arquivo que o agente lê.
What it does
Exposes Playwright as a command-line tool that agents drive directly. CLI calls are more token-efficient than MCP because they skip large tool schemas and verbose accessibility trees.
When to use
- Checking that a UI change actually works in a real browser.
- Reproducing a bug by walking through a flow.
- Generating or debugging Playwright tests.
What’s inside
- Core commands: open, goto, click, fill, type, snapshot, screenshot.
- Navigation, keyboard, mouse and tabs.
- Storage and network: cookies, local storage, request mocking.
- References for test generation, tracing, video recording and session management.
The CLI and its skill are authored and maintained by Microsoft.