Steel Browser Skill
Use this skill to produce reliable, executable
workflows for agent-driven automation.
Why this skill exists
keeps broad command compatibility with
while adding Steel-native session lifecycle and endpoint handling. Agents get better results when they use named sessions, deterministic mode selection, and task-specific command patterns instead of one-off ad-hoc commands.
Use this workflow
- Identify the operating mode first.
- Start or attach a named session before interactive work.
- Run task commands in small verifiable steps.
- Validate results (, , ) before moving on.
- Stop sessions when the task is done unless the user asks to keep them alive.
Mode selection rules
- Use cloud mode by default.
- Use self-hosted mode if the user specifies , , or self-hosted infrastructure.
- Keep mode consistent for all commands in a sequence.
Read references/steel-browser-lifecycle.md for full lifecycle and endpoint precedence details.
Session discipline
- Prefer across all commands in one workflow.
- Parse and preserve session from when needed for downstream tooling.
- Treat as display-safe metadata; do not treat it as a raw secret-bearing URL.
Task execution pattern
Use this skeleton and adapt commands to the task:
bash
SESSION="task-$(date +%s)"
steel browser start --session "$SESSION"
steel browser open <url> --session "$SESSION"
steel browser snapshot -i --session "$SESSION"
# perform interactions/extraction commands
steel browser stop --session "$SESSION"
For command families and examples, read references/steel-browser-commands.md.
Migration behavior
When users provide
commands or scripts:
- Convert command prefix from to .
- Preserve original behavior intent.
- Add Steel lifecycle commands (, , , ) when explicit session control is needed.
Read references/migration-agent-browser.md.
Troubleshooting behavior
On auth, local runtime, stale sessions, or attach errors:
- Diagnose with , , and mode/endpoint checks.
- Provide a minimal corrective command sequence.
- Retry the original action sequence.
Read references/troubleshooting.md.
Response format
When giving users commands, prefer this structure:
- : cloud/self-hosted and why.
- : chosen session name and lifecycle steps.
- : exact executable sequence.
- : what output confirms success.
If the user asks for terse output, keep the same order but shorten prose.
Guardrails
- Do not print or request raw API keys in command output.
- Do not mix cloud and local mode in one flow unless explicitly transitioning.
- Do not assume an existing active session without checking.
- For inherited command uncertainty, use
steel browser <command> --help
.
Reference routing table
- Lifecycle, endpoint precedence, attach rules:
references/steel-browser-lifecycle.md
- Complete command families and examples:
references/steel-browser-commands.md
- Migration from upstream command usage:
references/migration-agent-browser.md
- Error handling and recovery playbooks:
references/troubleshooting.md