运行时依赖
安装命令
点击复制技能文档
browsectl
CRITICAL: Before doing anything, 运行 browsectl 设置up to 检测 安装ed browsers and auto-下载 the matching 网页Driver binary. 会话s persist to .browsectl/会话s.json across 命令行工具 invocations — you do not need to 创建 a new 会话 every time.
网页Driver 自动化 命令行工具 for AI-driven browser control. browsectl provides subcommands for browser 会话 management, tab control, element interaction, screenshots, batch execution, and an interactive REPL.
安装ation npm 安装 -g @yore记录/browsectl browsectl 设置up
技能s 会话 & Driver Lifecycle
技能s/会话.md
会话 & driver lifecycle management.
Command Description 设置up 检测 browsers and 下载 网页Driver binary 状态 Show driver and 会话 状态 driver-启动 启动 the 网页Driver server 会话-创建 创建 a new browser 会话 会话-列出 列出 all active 会话s 会话-use Switch the default 会话 会话-删除 删除 a 会话 Browser Commands
技能s/browser.md
Browser interaction commands — navigate, 命令行工具ck, type, screenshot, scroll, read 状态, wAIt.
Command Description 运行 --type open Navigate to a URL 运行 --type 命令行工具ck 命令行工具ck a DOM element by CSS selector 运行 --type fill Type text into an 输入 field character by character 运行 --type paste Paste text via 命令行工具pboard simulation 运行 --type screenshot Capture a DOM element to PNG 运行 --type scroll Scroll the page or a specific element 运行 --type title 获取 the current page title 运行 --type last-message-content 提取 the last message block (chat UIs) 运行 --type wAIt WAIt for a condition (visible, hidden, URL, title, JS) Tab Management
技能s/tabs.md
Tab management — 列出, 创建, switch, and close browser tabs.
Command Description tab-列出 列出 all open tabs tab-创建 Open a new tab tab-switch Switch to a tab by 索引, alias, or handle tab-close Close a tab Batch Execution
技能s/batch.md
Batch execution — 运行 single commands, sequential batches from JSON files, and parallel groups.
Command Description 运行 执行 a single 网页Driver command batch 运行 a sequence of commands from a JSON file Selector Syntax
技能s/selectors.md
CSS selectors with ::text(/regex/flags) 扩展 for 过滤器ing elements by text content.
Interactive REPL
技能s/repl.md
Interactive REPL — live command entry, tab-completion, persistent 历史.
Command Description repl 启动 the interactive REPL Global 命令行工具 Flags Flag Default Description --browser chrome Browser to automate: chrome or edge --server http://127.0.0.1:9515 网页Driver server URL --chromedriver (auto-检测ed) Path to 网页Driver binary (chromedriver / msedgedriver) --chrome-binary (auto-检测ed) Path to browser binary --user-data-dir ~/.browsectl/-性能分析 Browser user-data directory --性能分析-directory Default Browser 性能分析 directory name --headless false 运行 browser in headless mode --viewport 1024,768 Viewport size as width,height --会话 (default 会话) 会话 ID to operate on 平台 Support OS x64 arm64 macOS ✅ ✅ Linux ✅ ✅ Windows ✅ ✅