stagehand
Installation
SKILL.md
Stagehand
AI browser automation with natural language for interaction/extraction. Extends Playwright's Page object — key concepts: page.goto(url) navigates, page.locator() finds elements, expect(locator).toBeVisible() asserts. Stagehand adds page.act() (natural language actions) and page.extract() (structured data extraction) on top.
When to Use
- Automating browser flows where selectors are fragile or unknown
- Extracting structured data from web pages
- Discovering page elements before writing precise selectors
- Don't use for: deterministic tests (playwright), static scraping, non-browser
Critical Patterns
✅ REQUIRED: page.act() for AI-Driven Actions
Natural language instructions, Stagehand finds element and acts.