# AGENTS.md instructions for Playwright CLI for browser automation and UI verification

Use Playwright CLI for browser automation and UI verification only for: Run browser tests, generate traces, and verify user flows from the command line.

## Default behavior

- Prefer non-interactive commands and stable output formats: json, junit, html, text.
- Start with read-only inspection commands before changing state.
- Show the exact command before destructive or deployment actions.
- Require explicit user approval for commands marked `requires-review` or `destructive`.

## Useful commands

- safe: `npx playwright test` — Runs browser tests in CI or locally.
- safe: `npx playwright show-report` — Inspects the generated HTML report.
- requires-review: `npx playwright codegen https://example.com` — Records browser actions for a target site.

## Safety notes

- Browser automation should avoid destructive authenticated flows unless explicitly approved.
- Use screenshots, traces, and test reports as evidence for agent conclusions.