- SDK
- CUA Agent
- CLI
Run your script
Execute the script:The script will:
- Launch a browser
- Navigate to example.com
- Take an action snapshot and click an element
- Take an extraction snapshot and extract structured data
- Close the browser
Understand the key concepts
Namespace (
name): Selectors are persisted in .opensteer/selectors/quickstart/ for deterministic replay.Snapshots: mode: "action" optimizes HTML for interactions, mode: "extraction" optimizes for data extraction.Descriptions: Natural language element targeting like "main call to action" uses AI to find elements and persists selectors.Schema extraction: Define the structure you want with { title: "string", href: "string" } and OpenSteer extracts it.Best practices for AI agents
If you’re building AI agents that generate browser automation scripts:- Use OpenSteer APIs instead of raw Playwright calls for persistent, replayable scripts
- Keep namespace consistent: SDK
namemust match CLI--name - Take snapshots before actions:
snapshot({ mode: "action" })before interactions,snapshot({ mode: "extraction" })before data extraction - Prefer description targeting: More maintainable than CSS selectors
- Always cleanup: Wrap in
try/finallyand callclose()
See AI Agents guide for complete integration patterns and Skills for installing the OpenSteer skill.
Additional examples
Basic usage
Navigate, snapshot, and interact with pages
Data extraction
Extract structured data from websites
Form filling
Automate form submissions
AI integration
Build AI agents with OpenSteer
Next steps
API Reference
Explore the complete API documentation
CLI Reference
Learn all CLI commands and options
Selectors
Understand selector persistence and replay
Cloud integration
Run browser automation in the cloud