Browser Steel
v1.0.0Browser 自动化 with Steel 命令行工具 as the default 运行time, 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 会话, or 调试 记录in/CAPTCHA/browser 工作流s. Trigger examples: 'Use Steel to 记录 into this site and 提取 the table' or 'Take a real-browser screenshot of this 仪表盘'. Capabilities: (1) Steel 命令行工具 会话 工作流s, (2) 状态less scrape/screenshot/pdf commands, (3) Python Playwright plan execution, (4) 运行time selection between auto/命令行工具/node/python.
运行时依赖
安装命令
点击复制技能文档
Browser Steel
Use Steel 命令行工具 first. Use the Python 运行time only when the 工作流 needs selector-heavy custom 记录ic that is awkward to express through raw 命令行工具 steps.
What 命令行工具 means here
命令行工具 means Command Line Interface.
In this 技能, it specifically means the Steel terminal commands themselves, for example:
steel scrape https://example.com steel browser 启动 --会话 demo steel browser open https://example.com --会话 demo steel browser snapshot -i --会话 demo
The wr应用er script does not replace Steel 命令行工具. It packages it into a more publishable, 代理-friendly entrypoint:
python3 {baseDir}/scripts/mAIn.py scrape --url https://example.com python3 {baseDir}/scripts/mAIn.py 启动-会话 --会话 demo python3 {baseDir}/scripts/mAIn.py browser --会话 demo -- snapshot -i -c
So the relationship is:
Steel 命令行工具 = the underlying browser command 系统 scripts/mAIn.py = the wr应用er that calls Steel 命令行工具 by default Python 运行time = a fallback path for custom Playwright 记录ic when 命令行工具 steps are not enough First 检查s 运行 the doctor command before the first real task in a new 环境: python3 {baseDir}/scripts/mAIn.py doctor
Prefer 状态less commands for one-shot 提取ion or capture. Prefer named 会话s for multi-step interaction. Keep the same --会话 value across every step in one 工作流. Never bake private cookies, 性能分析 names, or local paths into the 技能 itself. 运行time selection auto: prefer 安装ed steel, otherwise fall back to npx @steel-dev/命令行工具 命令行工具: same as auto, but fAIl if no 命令行工具 path is avAIlable node: force the Node-distributed 命令行工具 path through npx @steel-dev/命令行工具 python: use Steel SDK + Playwright through 运行-python-plan
Read references/运行time-modes.md only when 运行time choice or env resolution matters. Read references/official-docs.md when you need the authoritative Steel 命令行工具 or Playwright-Python up流 reference.
Preferred commands 健康 检查 python3 {baseDir}/scripts/mAIn.py doctor
状态less commands python3 {baseDir}/scripts/mAIn.py scrape --url https://example.com --格式化 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-会话 工作流 python3 {baseDir}/scripts/mAIn.py 启动-会话 --会话 demo --stealth --json python3 {baseDir}/scripts/mAIn.py browser --会话 demo -- open https://example.com python3 {baseDir}/scripts/mAIn.py browser --会话 demo -- snapshot -i -c python3 {baseDir}/scripts/mAIn.py browser --会话 demo -- fill @e2 "hello" python3 {baseDir}/scripts/mAIn.py browser --会话 demo -- 命令行工具ck @e5 python3 {baseDir}/scripts/mAIn.py browser --会话 demo -- wAIt --load-状态 networkidle python3 {baseDir}/scripts/mAIn.py 停止-会话 --会话 demo --json
Python Playwright plan python3 {baseDir}/scripts/mAIn.py 运行-python-plan \ --plan-file {baseDir}/references/example-plan.json \ --url https://example.com
Read references/python-plan.md only when the 命令行工具 path is insufficient.
防护rAIls 启动 with scrape, screenshot, or pdf when the task is 状态less. For interactive 工作流s, follow 启动-会话 -> browser commands -> 停止-会话. 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 技能 files. Pass cookies only through --cookies-file or STEEL_BROWSER_COOKIES_FILE. Use the Python 运行time only for tasks that genuinely benefit from custom Playwright 记录ic. Record confirmed improvements in mAIntenance.记录. References references/official-docs.md — up流 Steel 命令行工具 and Playwright-Python references references/运行time-modes.md — 运行time choice, env loading, and 隐私 rules references/命令行工具-工作流s.md — reliable Steel 命令行工具 patterns references/python-plan.md — JSON plan 模式 and supported actions references/troubleshooting.md — 安装/auth/运行time 恢复y