playwright

Automate browser tasks via Playwright CLI from the terminal.

2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/metric-space-ai/ctox --skill playwright-metric-space-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/metric-space-ai/ctox/tree/main/skills/packs/testing/playwright
Command: npx skills add https://github.com/metric-space-ai/ctox --skill playwright-metric-space-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Automate real browser tasks from the terminal by driving Playwright CLI and a lightweight wrapper, enabling headless or headed automation without a GUI.

Core Features & Use Cases

  • CLI-first browser automation: open pages, interact with elements, take snapshots, and capture artifacts from the terminal.
  • Wrapper script convenience: run with or without a global Playwright CLI install to ensure portability on local machines and in CI.
  • Debug & automate workflows: reuse scripted interactions for testing, data extraction, and UI-flow automation across sessions.

Quick Start

Run the wrapper script to launch a page, perform a sequence of interactions, and capture a screenshot.

Frequently Asked Questions about playwright

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate browser tasks from the terminal using Playwright?

You can automate browser tasks from the terminal by driving the Playwright CLI through a lightweight wrapper script. This enables navigation, form filling, element interaction, and snapshot capture directly from the command line.

Can I run web automation scripts in CI without a global Playwright CLI install?

Yes, you can run web automation in CI environments without a global install by using the provided wrapper script. This ensures command portability and execution across local machines and continuous integration pipelines.

Do I need Node.js and npm to run command line browser automation?

Yes, you need Node.js and npm installed to run this command line browser automation. The wrapper script relies on the Node.js environment to drive the Playwright CLI for headless or headed browser interactions.

What kind of browser interactions can I perform with a CLI wrapper script?

With the CLI wrapper script, you can perform navigation, form filling, element interaction, take snapshots, and capture artifacts. These scripted interactions are reusable for testing, data extraction, and UI-flow automation.

What is the best way to capture screenshots and artifacts during headless browser automation?

The best way to capture screenshots and artifacts during headless browser automation is using the Playwright CLI wrapper. It drives real browsers to capture snapshots and artifacts directly from your terminal sessions.