← 返回 Skills 市场
austindixson

Playwright Commander

作者 austindixson · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
21630
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install playwright-commander
功能描述
A skill to interact with web browsers using Playwright for advanced UI automation, analysis, and debugging.
使用说明 (SKILL.md)

Playwright Commander Skill

Description

This skill provides agents with a powerful interface to programmatically control web browsers using Playwright. It enables advanced UI automation, web content analysis, and debugging capabilities beyond what the default browser tool might offer directly.

Core Functionalities

  • Launch and close browser instances.
  • Navigate to specified URLs.
  • Capture screenshots of web pages.
  • Retrieve HTML content or readable text from pages.
  • Execute custom JavaScript within the browser context.
  • Interact with web elements (click, type, fill forms) using various selectors.
  • Retrieve element attributes or text content.

Usage

This skill is designed for programmatic interaction via exec commands, typically orchestrated by an agent.

# Example: Launch browser and navigate
python3 scripts/playwright_cli.py launch_browser --browser chrome --headless true

# Example: Navigate to URL and take screenshot
python3 scripts/playwright_cli.py navigate --url "https://example.com" --screenshot "path/to/screenshot.png"

# Example: Get page content
python3 scripts/playwright_cli.py get_content --url "https://example.com" --type html

# Example: Click an element
python3 scripts/playwright_cli.py click_element --url "https://example.com" --selector "button.submit"

Prerequisites

  • Playwright Python package (playwright) installed in the skill's virtual environment.
  • Playwright browser binaries installed (playwright install).

Configuration (config.json)

(To be defined if specific configuration beyond default Playwright options is needed.)

Purpose

To give me more granular and robust control over web browser interactions, enabling more complex UI automation, detailed web page analysis, and better troubleshooting capabilities for browser-related issues, especially for the Mac App conversion project.

安全使用建议
Install only if you want an agent to run Playwright-style browser inspection commands. Use it on trusted sites or test environments, be careful with authenticated pages, and review screenshot output paths before running commands that write files.
功能分析
Type: OpenClaw Skill Name: playwright-commander Version: 1.0.0 The skill is classified as suspicious due to its inherent high-risk capabilities, although these are plausibly aligned with its stated purpose of Playwright-based browser automation. Key indicators include shell scripts (`venv/lib/python3.14/site-packages/playwright/driver/package/bin/*.sh`) that perform system-wide modifications (e.g., installing browser binaries, modifying system package sources) requiring elevated privileges. Additionally, the core Python script (`scripts/playwright_cli.py`) allows navigation to arbitrary URLs and writing screenshots to arbitrary file paths, which could be abused for data overwriting or exfiltration if the agent is compromised. There is no clear evidence of intentional malicious behavior, but the broad system and file access capabilities warrant a 'suspicious' classification.
能力评估
Purpose & Capability
The stated purpose is browser automation, analysis, and debugging. The actual custom script supports launching a fresh Playwright browser, navigating to a user-supplied URL, taking a screenshot, and returning page HTML/text; documentation claims additional click, form, and JavaScript features that are not implemented in the inspected script.
Instruction Scope
Trigger rules are moderately broad for web automation and browser diagnostics, but still related to the skill purpose. The skill should be used only for explicit browser automation or page inspection tasks.
Install Mechanism
The artifact bundles a Python virtual environment with Playwright and pip. Playwright includes standard browser/dependency installation scripts that may use package managers or sudo when explicitly invoked, but the skill does not automatically run those installers.
Credentials
The custom script creates new browser contexts rather than using a persistent local browser profile, and it does not read cookies, tokens, local session stores, or broad local files. Arbitrary URL navigation and screenshot output are expected for this purpose.
Persistence & Privilege
No background worker, startup hook, persistence mechanism, privilege escalation logic, credential handling, or automatic system modification was found in the skill’s own runtime instructions or script.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install playwright-commander
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /playwright-commander 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Playwright Commander—an advanced tool for UI automation and browser control. - Programmatically launch and close browser instances using Playwright. - Navigate to URLs, capture screenshots, and retrieve HTML or text content. - Execute custom JavaScript and interact with web elements (click, type, fill forms). - Retrieve element attributes or text for analysis and debugging. - Designed for use via CLI exec commands; requires Playwright Python package and installed browsers.
元数据
Slug playwright-commander
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Playwright Commander 是什么?

A skill to interact with web browsers using Playwright for advanced UI automation, analysis, and debugging. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 21630 次。

如何安装 Playwright Commander?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install playwright-commander」即可一键安装,无需额外配置。

Playwright Commander 是免费的吗?

是的,Playwright Commander 完全免费(开源免费),可自由下载、安装和使用。

Playwright Commander 支持哪些平台?

Playwright Commander 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Playwright Commander?

由 austindixson(@austindixson)开发并维护,当前版本 v1.0.0。

💬 留言讨论