stagehand
БесплатноЗапускает вложенные скриптыНе проверенOperate Browserbase Stagehand, the MIT-licensed browser-agent SDK and `browse` CLI for local or Browserbase Chromium automation, natural-language `act`…
от akillness★ 63 звезды на GitHubОб этом скилле
Stagehand — typed browser agents with a deterministic escape hatch
Stagehand v4 is Browserbase's browser-agent SDK for TypeScript, Python, and Go. It combines familiar Chromium page/locator APIs with three model-assisted primitives:
observe()discovers actionable elements and returns executable actions.act()performs one natural-language action, or replays an observed action without another model call.extract()returns data validated against a Zod, Pydantic, or Go schema.
It also exposes page-registered WebMCP tools and Browserbase cloud search() and
fetch() helpers. The repository ships a separate browse CLI for terminal-first
browser sessions and Browserbase resource operations.
When to use this skill
- Build or maintain a Stagehand v4 SDK flow in TypeScript, Python, or Go.
- Choose between a local Chromium run, a Browserbase cloud session, or a CDP connection to an already-running Chromium browser.
- Replace brittle selectors with bounded
observe()/act()steps or typedextract()calls while keeping deterministic locators for sensitive fields. - Discover and invoke a page's WebMCP tools, including their schemas and read-only, untrusted-content, or autosubmit annotations.
- Use the
browseCLI for snapshot-driven navigation, cloud sessions, Fetch/ Search, network diagnostics, Functions, templates, or Browse.sh skills. - Port a Playwright flow to Stagehand v4 and identify unsupported assumptions.
- Execute Stagehand browser agents or automated tests within Aside sessions using Browserbase cloud or an external CDP endpoint.
Do not use this skill when
- The task is running inside an Aside agent session and the user wants to inspect
or control Aside's own browser tabs -> use Aside's native
repl(Playwright- stylepage,openTab,snapshot(page)). - The task must reuse the user's already-open authenticated browser profile and
live tabs -> use
playwriter. - The task is repeatable clean-browser/CDP verification without the Stagehand
SDK -> use
browser-harness. - The task is parser-first scraping, a bounded crawl, or a simple rendered fetch
-> use
scraplingormoli. - The task is visual UI annotation, React source capture, or video capture -> use
agentation,react-grab, orbrowser-video-recording. - The user only needs an ordinary Playwright test runner. Keep Playwright or its existing runner unless the user explicitly wants a Stagehand migration.
Instructions
1. Capture the execution packet before installing anything
Record these choices before running a command:
- Surface: SDK,
browseCLI, Browserbase MCP, or Search/Fetch. - Browser: local Chromium, Browserbase cloud, or an explicit CDP endpoint.
- Language: TypeScript, Python, or Go.
- Side effect: read-only inspection, navigation, form submission, upload, purchase, deletion, message sending, or another external action.
- Spend boundary: local model/provider calls, Browserbase session time, Model Gateway, Search/Fetch, proxies, or other paid usage.
A request to install a package, start a remote session, use a stored context, submit a form, or spend a paid quota is not implied by merely asking for a Stagehand skill. Obtain the required approval at the point of that action.
2. Run the read-only preflight
From this skill directory, run the standard-library helper before installation or execution:
node scripts/stagehand-preflight.mjs --json
For a specific target, make the requirement explicit:
node scripts/stagehand-preflight.mjs --language ts --local --model --json
node scripts/stagehand-preflight.mjs --language cli --remote --json
node scripts/stagehand-preflight.mjs --language python --project /path/to/app
The helper reports tool presence, compatible runtime versions, browser presence, project manifest presence, and only boolean API-key presence. It never prints key values, installs packages, launches a browser, or claims that a provider account is usable. Read commands.md for the exact setup matrix.
3. Choose and install one browser surface
Install only the surface the task needs. Do not clone or build the whole Stagehand monorepo for an SDK consumer.
TypeScript SDK:
pnpm add @browserbasehq/[email protected] 'zod@~4.4.3'
Use Node.js >=22.18.0 for the v4 TypeScript SDK. The audited installation
docs also require Python >=3.11 and Go >=1.26 for those SDKs. Keep Zod on
the supported 4.4.x minor line when TypeScript types are passed to extract().
Python SDK:
pip install stagehand
Go SDK:
go get github.com/browserbase/stagehand/packages/sdk-go/[email protected]
browse CLI:
npm install -g browse
browse --help
The CLI is a separate package from the SDK. Its audited package accepts Node.js
^20.19.0 || >=22.12.0. Run browse <topic> --help before unfamiliar commands.
4. Select local, cloud, or CDP e
Установить stagehand в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGlobGrepWebFetchEnvВложенные файлы
FAQ
Что делает скилл stagehand?
Operate Browserbase Stagehand, the MIT-licensed browser-agent SDK and `browse` CLI for local or Browserbase Chromium automation, natural-language `act`, `observe`, and `extract`, typed WebMCP calls, cloud Search/Fetch, Playwright migrations, and Browserbase MCP integration. Use when a user wants to build, run, debug, or migrate a Stagehand browser agent, choose local versus cloud browser execution, or configure the `browse` command surface. Triggers on: stagehand, @browserbasehq/stagehand, browserbase.launch, localBrowser.launch, act(), observe(), extract(), WebMCP, browse CLI, Browserbase MCP.
Как установить скилл stagehand?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл stagehand запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic