Playwright Commander
/install playwright-commander
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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install playwright-commander - 安装完成后,直接呼叫该 Skill 的名称或使用
/playwright-commander触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。