Back to Skills

browser

Control a Chrome session via Stagehand to browse, act, extract, and screenshot on demand inside the Factory CLI.

3starsUpdated 3/19/2026

Security Assessment

Low Risk(80/100)

Detected risks:

Sensitive File Access([README.md] .env)
Security Score80/100

About browser

The Browser skill provides automated control over a Chrome session within the Factory CLI environment via Stagehand. It allows users to interact with websites programmatically, perform actions, extract structured data, and capture screenshots. This skill is designed to streamline repetitive web interactions, automate data collection, and provide a reliable method for recording and verifying web-based workflows. By integrating live browser automation directly into the Factory session, it eliminates the need for manual browsing and ensures consistent results across tasks.

Key features include the ability to navigate to URLs, execute natural-language-driven actions, extract structured data based on a specified schema, observe suggested next steps, and capture screenshots of the current viewport. Screenshots are automatically saved to a dedicated directory, and the skill provides detailed summaries of completed tasks along with follow-up recommendations. The skill also ensures proper session management by requiring Chrome to run via Stagehand and by safely closing sessions to prevent lingering processes.

This skill is particularly useful for developers, QA engineers, and data analysts who need to automate web interactions for testing, data gathering, or reporting. It supports complex flows that would otherwise require manual intervention, making it ideal for repetitive web tasks, automated monitoring of sites, and structured data extraction. Users who require precise control over a Chrome session, want to integrate browser actions into automated pipelines, or need consistent screenshots for documentation or analysis will find this skill highly valuable.

FAQ

How do I start a browser session using this skill?

You can start a session by providing a target URL or a natural language task description. The skill ensures Chrome runs via Stagehand using a local profile stored in `.chrome-profile`.

Which commands are supported for interacting with web pages?

Supported commands include `navigate <url>` to open a page, `act "<instruction>"` for actions, `extract "<instruction>" '{"field":"type"}'` for structured data, `observe "<goal>"`, `screenshot` to capture the viewport, and `close` to end the session.

Are there any API keys required to use this skill?

Yes, `ANTHROPIC_API_KEY` is required for Stagehand, and `FACTORY_API_KEY` is needed if using the skill via `droid exec`.

Where are screenshots saved and how can I access them?

Screenshots are saved in the `agent/browser_screenshots` directory, and the skill reports the file paths in its responses.

What happens if a navigation or action fails?

The skill will include the error message and prompt the user for next steps, ensuring you can handle failures without leaving Chrome processes running.

All Files

9 files
package.json0.8 KB
View
LICENSE1.0 KB
View
README.md2.0 KB
View
.env.example0.1 KB
View
.gitignore0.1 KB
View
config.yaml0.4 KB
View
SKILL.md1.5 KB
View
package-lock.json142.9 KB
View
tsconfig.json0.4 KB
View

Install browser

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill