返回顶部
b

browser-steel

Browser automation with Steel CLI as the default runtime, plus a Python Playwright fallback for custom flows. Use when the user asks to open a JS-heavy site, capture live page content, take screenshots/PDFs, fill forms, reuse a named browser session, or debug login/CAPTCHA/browser workflows. Trigger examples: 'Use Steel to log into this site and extract the table' or 'Take a real-browser screenshot of this dashboard'. Capabilities: (1) Steel CLI session workflows, (2) stateless scrape/screenshot

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

browser-steel

# Browser Steel Use Steel CLI first. Use the Python runtime only when the workflow needs selector-heavy custom logic that is awkward to express through raw CLI steps. ## What `CLI` means here `CLI` means **Command Line Interface**. In this skill, it specifically means the Steel terminal commands themselves, for example: ```bash steel scrape https://example.com steel browser start --session demo steel browser open https://example.com --session demo steel browser snapshot -i --session demo ``` The wrapper script does not replace Steel CLI. It packages it into a more publishable, agent-friendly entrypoint: ```bash python3 {baseDir}/scripts/main.py scrape --url https://example.com python3 {baseDir}/scripts/main.py start-session --session demo python3 {baseDir}/scripts/main.py browser --session demo -- snapshot -i -c ``` So the relationship is: - **Steel CLI** = the underlying browser command system - **`scripts/main.py`** = the wrapper that calls Steel CLI by default - **Python runtime** = a fallback path for custom Playwright logic when CLI steps are not enough ## First checks 1. Run the doctor command before the first real task in a new environment: ```bash python3 {baseDir}/scripts/main.py doctor ``` 2. Prefer stateless commands for one-shot extraction or capture. 3. Prefer named sessions for multi-step interaction. 4. Keep the same `--session` value across every step in one workflow. 5. Never bake private cookies, profile names, or local paths into the skill itself. ## Runtime selection - `auto`: prefer installed `steel`, otherwise fall back to `npx @steel-dev/cli` - `cli`: same as `auto`, but fail if no CLI path is available - `node`: force the Node-distributed CLI path through `npx @steel-dev/cli` - `python`: use Steel SDK + Playwright through `run-python-plan` Read `references/runtime-modes.md` only when runtime choice or env resolution matters. Read `references/official-docs.md` when you need the authoritative Steel CLI or Playwright-Python upstream reference. ## Preferred commands ### Health check ```bash python3 {baseDir}/scripts/main.py doctor ``` ### Stateless commands ```bash python3 {baseDir}/scripts/main.py scrape --url https://example.com --format markdown --json python3 {baseDir}/scripts/main.py screenshot --url https://example.com --full-page --json python3 {baseDir}/scripts/main.py pdf --url https://example.com --json ``` ### Named-session workflow ```bash python3 {baseDir}/scripts/main.py start-session --session demo --stealth --json python3 {baseDir}/scripts/main.py browser --session demo -- open https://example.com python3 {baseDir}/scripts/main.py browser --session demo -- snapshot -i -c python3 {baseDir}/scripts/main.py browser --session demo -- fill @e2 "hello" python3 {baseDir}/scripts/main.py browser --session demo -- click @e5 python3 {baseDir}/scripts/main.py browser --session demo -- wait --load-state networkidle python3 {baseDir}/scripts/main.py stop-session --session demo --json ``` ### Python Playwright plan ```bash python3 {baseDir}/scripts/main.py run-python-plan \ --plan-file {baseDir}/references/example-plan.json \ --url https://example.com ``` Read `references/python-plan.md` only when the CLI path is insufficient. ## Guardrails - Start with `scrape`, `screenshot`, or `pdf` when the task is stateless. - For interactive workflows, follow `start-session -> browser commands -> stop-session`. - After any navigation or meaningful DOM change, take a fresh `snapshot -i` before using another `@eN` ref. - Keep secrets in env vars or an explicit `--env-file`, not in the skill files. - Pass cookies only through `--cookies-file` or `STEEL_BROWSER_COOKIES_FILE`. - Use the Python runtime only for tasks that genuinely benefit from custom Playwright logic. - Record confirmed improvements in `maintenance.log`. ## References - `references/official-docs.md` — upstream Steel CLI and Playwright-Python references - `references/runtime-modes.md` — runtime choice, env loading, and privacy rules - `references/cli-workflows.md` — reliable Steel CLI patterns - `references/python-plan.md` — JSON plan schema and supported actions - `references/troubleshooting.md` — install/auth/runtime recovery

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 browser-steel-1776001810 技能

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

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

通过命令行安装

skillhub install browser-steel-1776001810

下载 Zip 包

⬇ 下载 browser-steel v1.0.0

文件大小: 13.88 KB | 发布时间: 2026-4-13 09:34

v1.0.0 最新 2026-4-13 09:34
Initial release of browser-steel skill for browser automation via Steel CLI and Python Playwright fallback.

- Enables JS-heavy site automation, live page capture, screenshots, PDFs, form filling, and session workflows.
- Steel CLI is used by default for most tasks; Python Playwright serves as fallback for advanced flows.
- Supports stateless commands and multi-step session management.
- Allows runtime selection between auto, cli, node, or python modes.
- Includes guardrails for session, secret, and environment management.

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

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

p2p_official_large
返回顶部