Introduction¶
In everyday office work, many tasks still require opening a browser: researching information, logging into intranet systems, exporting reports, and repeatedly filling out the same types of fields in web forms. Manual clicking is prone to errors, and writing one-off scripts often requires maintaining selectors, which break as soon as the page changes. If you want to describe “which page to open, where to click, and which fields to extract” using natural language, and organize the results into reusable structured output, you can hand over browser operations to an Agent Skill instead of writing Playwright snippets from scratch every time.
Below is an introduction to Browser Automation (coordinate @clawhub_peytoncasper/browser-automation) on SkillHub. It is maintained upstream on ClawHub and strings together navigation, clicking, form filling, screenshots, and data extraction into a reproducible command flow via CLI. It is suitable for handing over repetitive web-side labor to AI orchestration.
What is This¶
Browser Automation is an Agent Skill designed for “web browser interaction automation”: using natural language combined with CLI commands to drive the browser to perform browsing, navigation, data extraction, screenshots, form filling, clicking, and interaction with web applications.
- Maintainer: Publisher peytoncasper; see upstream repository at clawhub.ai/peytoncasper/browser-automation.
- Distribution: SkillHub page Browser Automation, source clawhub, current version 1.0.1, category ai-agent. The page is marked
requires_api_key=true(API configuration is required when using remote Browserbase; pure local Chrome mode does not require configuration). - Platform Data (SkillHub page): Rating 100000, Downloads 76424, Installs 1589.
The Skill implementation is based on the Stagehand CLI, where the Agent calls the browser subcommand during conversation to complete specific operations.
Core Features¶
The following capabilities are derived from the upstream Skill description and can be used in local or remote environments using the same set of commands.
- Page Navigation: Open a specified URL, serving as the prerequisite for subsequent interactions.
- Natural Language Actions: Use
actto describe operations like clicking and filling forms without writing CSS/XPath manually. - Structured Extraction: Use
extractto retrieve data from the page based on instructions (and optional JSON Schema). - Element Discovery: Use
observeto probe interactive elements when operations fail or the page is complex. - Screenshots & Cleanup: Use
screenshotto verify steps; usecloseto release the browser session.
The execution environment automatically selects between local Chrome and Browserbase remote browser: if BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID are configured in .env, it uses remote mode (supporting stealth, proxies/CAPTCHA, and other production-oriented capabilities); if not configured, it falls back to local Chrome without requiring additional user inquiry.
Installation and Activation¶
Install into Agent via SkillHub¶
The official SkillHub installation instructions are available at skillhub.md. When installing this Skill, the coordinate is @clawhub_peytoncasper/browser-automation.
First, check if the skillhub CLI is already on your machine:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub documentation to perform a full installation or just CLI installation (the curl installation script in the documentation). When installing skills, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and the Agent may fail to load it.
Example for common Cursor directory:
skillhub install @clawhub_peytoncasper/browser-automation --dir ~/.cursor/skills/
For paths in other clients like Claude Code and Codex, refer to Section 4 of the SkillHub installation documentation (e.g., ~/.claude/skills/, ~/.codex/skills/).
You can also provide the following prompt to the AI to have it complete the installation according to the SkillHub documentation:
Please install `@clawhub_peytoncasper/browser-automation` based on https://skillhub.cn/install/skillhub.md.
OpenClaw Ecosystem¶
In the OpenClaw environment, the upstream-provided installation method is:
openclaw skills install @peytoncasper/browser-automation
First-time Environment Preparation within the Skill¶
If setup.json in the Skill directory shows setupComplete: false, you need to run a one-time dependency installation and global command linking within the Skill directory:
npm install
npm link
Once completed, the global command browser can be used.
Remote mode requires configuration in .env:
BROWSERBASE_API_KEY=...
BROWSERBASE_PROJECT_ID=...
Typical Usage¶
The official Quick Example can be reproduced directly in the terminal (commands are identical for local or remote modes):
browser navigate https://example.com
browser act "click the Sign In button"
browser extract "get the page title"
browser close
Summary of common subcommands:
browser navigate <url>
browser act "<action>"
browser extract "<instruction>" ['{}']
browser observe "<query>"
browser screenshot
browser close
Recommended flow: Start with navigate, use screenshot to verify after each step; make action descriptions as specific as possible; always close when finished. If an action fails, you can run browser observe first and then retry act.
Applicable Scenarios and Notes¶
Who is it for
- Office workers or business support personnel who need to repeatedly perform similar operations in the browser but want to describe steps using natural language (when used in conjunction with an Agent).
- Developers or operations personnel performing page smoke tests or data scraping prototypes who want to minimize selector maintenance code.
Limitations and Notes
- Local mode depends on Chrome being installed on the local machine; if Chrome is absent, you must switch to Browserbase and configure keys.
- Remote mode is slightly slower than local, but is more suitable for scenarios requiring stealth, proxies, or CAPTCHA handling.
- The tag
requires_api_key=trueindicates that the remote Browserbase path requires a key; not all usage strictly requires an API Key. - When page structures change drastically, natural language actions may still fail; investigate using
observeand screenshots. - When involving login credentials, intranet addresses, or sensitive data, run in a controlled environment and comply with company security and compliance requirements.
Conclusion¶
Browser Automation converges “opening web pages → operating → extracting data → closing browser” into a set of unified CLI capabilities. Orchestrated by an Agent according to office scenarios, it reduces manual repetitive clicking and fragile selector scripts. Installation and coordinates are subject to SkillHub; capability and command details are subject to the upstream ClawHub repository description.
- SkillHub: https://www.skillhub.cn/skills/clawhub_peytoncasper/browser-automation
- Official Index Address: https://api.skillhub.cn/org-02qudk26/browser-automation
- Upstream: https://clawhub.ai/peytoncasper/browser-automation