スキル一覧に戻る
MillionthOdin16

playwright

by MillionthOdin16

Clawds exploration of itself - discoveries, memory system, capabilities, lessons learned

0🍴 0📅 2026年1月17日
GitHubで見るManusで実行

SKILL.md


name: playwright description: Browser automation using Playwright (Firefox, Chromium, WebKit). Supports ARM64 where Chrome doesn't work. Provides page navigation, content extraction, screenshots, and interactive actions. metadata: {"clawdbot":{"emoji":"🎭","requires":{"bins":["python3"],"pip":["playwright"]}}}

Playwright - Browser Automation

Browser automation using Playwright. Works on ARM64 with Firefox when Chrome isn't available.

Setup

Playwright is already installed:

pip install playwright
python3 -m playwright install firefox  # Already done

Commands

Basic Operations

uv run {baseDir}/scripts/cli.py navigate "https://example.com"
uv run {baseDir}/scripts/cli.py content "https://example.com"
uv run {baseDir}/scripts/cli.py title "https://example.com"

Screenshot

uv run {baseDir}/scripts/cli.py screenshot "https://example.com" --output /tmp/page.png

Interactive Actions

uv run {baseDir}/scripts/cli.py click "https://example.com" --selector ".button"
uv run {baseDir}/scripts/cli.py type "https://example.com" --selector "#input" --text "hello"
uv run {baseDir}/scripts/cli.py scroll "https://example.com" --direction down

Find Elements

uv run {baseDir}/scripts/cli.py find "https://example.com" --selector "a"
uv run {baseDir}/scripts/cli.py links "https://example.com"

Multi-step Tasks

uv run {baseDir}/scripts/cli.py task "
1. Go to https://example.com
2. Click the 'More' link
3. Extract the title
"

Full Page Snapshot

uv run {baseDir}/scripts/cli.py snapshot "https://example.com" --format ai

Examples

Research Task

# Get clean content from a page
uv run {baseDir}/scripts/cli.py content "https://github.com/MillionthOdin16/clawd-demo-site"

# Take a screenshot
uv run {baseDir}/scripts/cli.py screenshot "https://demo.bradarr.com" --output /tmp/demo.png

Automation Script

from playwright.async_api import async_playwright
import asyncio

async def run_task():
    async with async_playwright() as p:
        browser = await p.firefox.launch(headless=True)
        page = await browser.new_page()
        
        # Navigate
        await page.goto("https://example.com")
        
        # Interact
        await page.click(".selector")
        await page.fill("#input", "text")
        
        # Extract
        title = await page.title()
        content = await page.content()
        
        await browser.close()
        return title, content

# Run the async function
asyncio.run(run_task())

Why Playwright Over Chrome?

FeaturePlaywright (Firefox)Chrome CDP
ARM64 Support✅ Yes❌ No
Firefox✅ Works❌ Not supported
Chromium⚠️ Limited✅ Full
Screenshots✅ Yes✅ Yes
Multi-browser✅ 3 enginesChrome only

When to Use

TaskToolWhy
Simple content extractionr.jina.ai (curl)No browser needed, faster
Interactive/JavaScript pagesplaywrightRenders JS, can click/type
ScreenshotsplaywrightFull page capture
Quick URL to markdownr.jina.aicurl https://r.jina.ai/http://url

See Also

  • Full workflow guide: memory/WORKFLOW.md - Decision tree for when to use playwright vs r.jina.ai
  • Browser automation: memory/BROWSER-AUTOMATION.md - Clawdbot browser vs browser-use vs playwright

Notes

  • Uses Firefox by default (works on ARM64)
  • Headless mode for server environments
  • Install other browsers: python3 -m playwright install chromium webkit
  • For complex tasks, create a Python script

Files

  • scripts/cli.py - Main CLI tool
  • memory/PLAYWRIGHT-TASKS.md - Task examples (create as needed)

スコア

総合スコア

40/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です