Skip to content
Agentmart
Submit a tool

stagehand

Browser automation via Browserbase Stagehand MCP.

Skill by SAI141003

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sai141003-stagehand

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Browser automation via Browserbase Stagehand MCP. Use for act/observe/extract/agent browser primitives.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/stagehand

What's inside

Skill name
stagehand
Description
Browser automation via Browserbase Stagehand MCP. Use for act/observe/extract/agent browser primitives.
License
MIT
Metadata
trigger: command · category: automation
Instructions
196 lines in SKILL.md · view on GitHub

Before installing

  • Instructions read files in your home folder (~/.ssh, ~/.aws…)

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Stagehand

Browser automation through the **Browserbase Stagehand** MCP server. Provides
four core primitives — `act`, `observe`, `extract`, and `agent` — for
declarative, AI-powered web interaction.

## Installation

### Prerequisites

- Node.js >= 18
- A Browserbase API key ([sign up](https://browserbase.com))
- An ox/Kilo agent with MCP support

### Step 1 — Install the Stagehand MCP server

```bash
npm install -g @browserbase/stagehand-mcp
```

### Step 2 — Configure with ox

Add to `~/.config/ox/mcp.json`:

```json
{
  "mcpServers": {
    "stagehand": {
      "command": "npx",
      "args": ["@browserbase/stagehand-mcp"],
      "env": {
        "BROWSERBASE_API_KEY": "your-api-key-here",
        "BROWSERBASE_PROJECT_ID": "your-project-id"
      }
    }
  }
}
```

Or set env vars in your shell profile:

```bash
export BROWSERBASE_API_KEY="bs_..."
export BROWSERBASE_PROJECT_ID="c1e..."
```

### Step 3 — Verify

```bash
ox mcp list
# stagehand — registered, ready
```

## The Four Primitives

### act — Perform an action

Execute a user-described action using AI. Stagehand figures out the best way.

```js
await tools.stagehand_act({
  action: "Click the 'Sign In' button"
});

await tools.stagehand_act({
  action: "Fill in the email field with user@example.com"
});
```

### observe — Inspect the page

Get structured information about the current page state.

```js
const observation = await tools.stagehand_observe({
  query: "What is the current page title and URL?"
});
console.log(observation.result);
```

### extract — Pull structured data

Extract specific information following a schema.

```js
const data = await tools.stagehand_extract({
  prompt: "Extract all product names and prices from this page",
  schema: {
    products: [{ name: "string", price: "string" }]
  }
});
```

### agent — Autonomous browsing session

Run a full AI agent loop to achieve a goal.

```js
const result = await tools.stagehand_agent({
  task: "Search for red sneakers on Amazon and add the first result to cart"
});
```

## Usage Examples

### Web Scraping with Extract

```js
// 1. Navigate to page
await tools.stagehand_act({
  action: "Go to https://news.ycombinator.com"
});

// 2. Extract structured data
const posts = await tools.stagehand_extract({
  prompt: "Extract all story titles, URLs, and point counts",
  schema: {
    stories: [{
      title: "string",

From SAI141003/ox, MIT.

More from SAI141003/ox

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 11, 2026 (18 days ago)
Last release
Oct 17, 2026 (11 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from SAI141003

Cite this page

stagehand skill. Agent Mart. https://agentmart.dev/skills/sai141003-stagehand (last updated 2026-10-24)