Playwright Commander for Openclaw

An advanced browser automation skill providing programmatic control over web interfaces using the Playwright framework.

austindixson
v1.0.0
Mar 1, 2026
0
16.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install playwright-commander

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install playwright-commander using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Playwright Commander?

Playwright Commander is a specialized tool designed to provide AI agents with granular control over web browsers. By integrating the Playwright framework into the ecosystem of Openclaw Skills, it enables sophisticated UI automation, detailed web content analysis, and visual debugging that exceeds the capabilities of standard browser tools. This skill allows for the precise execution of browser-based tasks through a structured command-line interface.

Built for developers and automation engineers, this skill facilitates deep interaction with modern web applications. It supports multiple browser engines and provides the necessary hooks to perform complex sequences like form manipulation, state inspection via JavaScript execution, and high-fidelity screen captures for audit or analysis purposes.

Playwright Commander Use Cases

  • Automating complex, multi-page web workflows and form submissions.
  • Generating high-resolution screenshots for visual regression and UI debugging.
  • Scraping clean HTML or rendered text content for data processing and RAG pipelines.
  • Testing web application functionality by simulating user interactions like clicks and typing.
  • Executing custom JavaScript snippets to analyze or modify the page state in real-time.

How Playwright Commander Works

  1. The agent invokes the skill via a Python-based CLI, specifying the desired browser engine and headless configuration.
  2. A browser instance is launched, providing a fresh context for the specified web navigation.
  3. The skill executes navigation commands to reach target URLs and waits for the page to reach a stable state.
  4. Targeted interactions are performed using CSS or XPath selectors to locate and manipulate DOM elements.
  5. Requested data, such as page source or element attributes, is captured and returned to the calling agent.
  6. The browser instance is closed or managed according to the lifecycle requirements of the automated task.

Playwright Commander Setup

To integrate Playwright Commander into your local Openclaw Skills environment, follow these installation steps:

# Install the Playwright Python package
pip install playwright

# Install the necessary browser binaries (Chromium, Firefox, Webkit)
playwright install

Playwright Commander Data Schema & Taxonomy

The skill processes interactions using a structured set of parameters to ensure reliable automation. Below is the metadata taxonomy used by the CLI:

Parameter Type Description
browser String The browser engine to use (e.g., chrome, firefox, webkit).
headless Boolean Whether to run the browser in the background without a GUI.
url String The destination web address for navigation.
selector String The CSS or XPath selector for targeting specific elements.
screenshot Path The file system path where page captures are saved.
type String The format for content retrieval (html or text).

Playwright Commander Advanced Features

  • Multi-browser support including Chromium, Firefox, and Webkit engines.
  • Custom JavaScript injection to interact directly with the browser's execution context.
  • Comprehensive selector engine supporting text, CSS, and XPath for resilient element targeting.
  • Headless and headful modes to balance between performance and manual debugging visibility.
  • Granular control over browser lifecycle, ideal for complex Mac App conversion projects and UI analysis.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*