CLI Finder / tools / playwright

Playwright CLI for browser automation and test generation

Run, debug, record, and inspect browser tests from terminal workflows.

Agent 适配度: 79/100 已验证发布者 持续维护
79 /100

Playwright CLI is useful for agents when usage is constrained to predictable commands and documented output.

Installability 83/100

Availability through common package managers and simple install commands.

Structured output 79/100

JSON, YAML, CSV, markdown, or stable machine-readable output for agents.

Safety 65/100

Clear read-only commands, dry-run options, and approval gates for destructive work.

Agent docs 71/100

How easily an agent can learn the command surface from docs, help, and examples.

安装方式

Recommended $ npm init playwright@latest

常用命令

Show help · 安全 $ playwright@latest --help

Inspect command surface before automation.

Check version · 安全 $ playwright@latest --version

Verify the installed CLI.

Agent 使用示例

Claude Code / Codex CLI / Gemini CLI Use Playwright CLI only with non-interactive commands. Prefer structured output: json, html, junit. Ask before destructive operations.

安全说明

  • Prefer non-interactive usage and explicit output flags when an agent runs this command.
  • Treat commands that deploy, delete, charge money, or mutate production data as approval-required.
  • Record the exact command, output format, and scope before adding it to an agent workflow.

What agents can use it for

Run, debug, record, and inspect browser tests from terminal workflows.

Agent usage rule

Prefer non-interactive commands, structured output, and approval gates for state-changing operations.

Install

npm init playwright@latest