返回顶部
c

claw-browser

A visual, human-like web browser for OpenClaw agents.Supports reading,screenshots, and visible mode.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
807
下载量
0
收藏
概述
安装方式
版本历史

claw-browser

# 🌐 Claw Browser Skill This skill gives the agent **"Eyes"** to browse the web using a real Chromium browser. Unlike simple HTTP requests, `claw-browser`: - Renders JavaScript - Handles dynamic content - Loads SPA applications - Takes real screenshots - Can run in visible (non-headless) mode ------------------------------------------------------------------------ # 🛠️ Installation & Setup (READ FIRST) ⚠️ **Before using this tool, the agent MUST set up the Python environment and download browser binaries.** If `venv` does not exist, run this setup command block automatically: ``` bash # 1. Create virtual environment python3 -m venv venv # 2. Activate it source venv/bin/activate # 3. Install dependencies pip install -r requirements.txt # 4. Download Chromium binaries (CRITICAL STEP) playwright install chromium ``` > ⚠️ The `playwright install chromium` step is **CRITICAL**.\ > Without it, the browser will NOT launch. ------------------------------------------------------------------------ # 🔧 Tools & Usage ## `browser.py` ### Arguments ----------------------------------------------------------------------- Argument Description ----------------------------------- ----------------------------------- `--url` The website to visit (**Required**) `--action` Action to perform: `read` or `screenshot` `--visible` (Optional) Runs the browser in visible mode (NOT headless). Use if the user wants to *see* the browser. ----------------------------------------------------------------------- ------------------------------------------------------------------------ # 🚀 Execution Examples ⚠️ Always activate the virtual environment first. ------------------------------------------------------------------------ ## 1️⃣ Read a Page (Headless - Default) ``` bash source venv/bin/activate && python browser.py --url "https://github.com/trending" --action read ``` ------------------------------------------------------------------------ ## 2️⃣ Take a Screenshot of a News Site ``` bash source venv/bin/activate && python browser.py --url "https://news.ycombinator.com" --action screenshot ``` This saves: evidence.png ------------------------------------------------------------------------ ## 3️⃣ Visible Mode (Shows Browser UI - Great for Demos) ``` bash source venv/bin/activate && python browser.py --url "https://google.com" --action read --visible ``` This will launch a real Chromium window on screen. ------------------------------------------------------------------------ ## 4️⃣ Visible Mode (WSL / Linux Fix) ⭐️ **Use this if you get "Missing X server" or "Display not found" errors:** ```bash export DISPLAY=:0 && source venv/bin/activate && python browser.py --url "[https://google.com](https://google.com)" --action read --visible ``` This sets the `DISPLAY` variable so the browser can open on your screen. ------------------------------------------------------------------------ # 🧠 When Should the Agent Use This Skill? Use `claw-browser` when: - The page requires JavaScript rendering - The site is dynamic (React, Vue, Angular, etc.) - Screenshots are required - The user explicitly asks to "open" or "see" a website - Traditional HTTP requests fail ------------------------------------------------------------------------ # ⚡ Summary `claw-browser` transforms your OpenClaw agent from a simple API caller into a **real browser-powered assistant** with visual capabilities. It enables: - Dynamic page interaction - Visual verification - Demo-ready browsing - Real-world automation ------------------------------------------------------------------------ Made with ❤️ by @canbirlik

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 claw-browser-1776419967 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 claw-browser-1776419967 技能

通过命令行安装

skillhub install claw-browser-1776419967

下载 Zip 包

⬇ 下载 claw-browser v1.0.2

文件大小: 3.4 KB | 发布时间: 2026-4-17 20:22

v1.0.2 最新 2026-4-17 20:22
- Added a new section for running in visible mode on WSL/Linux, including DISPLAY environment variable guidance.
- No other changes; functionality and examples remain the same.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部