# Automate Browser Sessions with Agentic Refs

AI agents often need reliable browser control without parsing full page DOMs. This skill provides compact refs, actions, screenshots, and reusable workflows.

## Install

```bash
npx skillstore add inference-sh-skills/agent-browser
```

## Metadata

- Status: approved
- Slug: inference-sh-skills-agent-browser
- Skillstore revision: r1
- Version status: missing
- Tree hash: 1a1be1f31412d1948c6a0cc3884f0cdf3a219df1255ea567115d33a7cee68cb4
- Author: inference-sh-skills
- GitHub username: inference-sh-skills
- License: MIT
- Repository: https://github.com/inference-sh-skills/skills/tree/main/tools/utilities/agent-browser/
- Ref: a06681402992ceae98ba04d54cfd4ab004862696
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: confirmation\_required
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem
- Quality score: 38
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/inference-sh-skills-agent-browser
- Manifest: https://skillstore.pages.dev/api/skills/inference-sh-skills-agent-browser/manifest

## Capabilities

- Open remote browser sessions with URL, viewport, proxy, and recording options.
- Return compact @e element refs for clicks, fills, selections, uploads, and drag actions.
- Refresh page snapshots after navigation, form submission, or dynamic content changes.
- Capture viewport or full page screenshots and optional WebM session recordings.
- Run JavaScript in the active page to extract text, links, counts, or selected content.
- Provide shell templates for form automation, authenticated sessions, and content capture.

## Use Cases

- Validate Web Flows: Run repeatable browser steps, capture evidence, and inspect failures in staging or production-like pages.
- Collect Web Research: Open pages, extract visible text and links, and save screenshots for later analysis.
- Prepare Support Documentation: Record browser workflows with cursor indicators and capture screenshots for customer-facing guides.

## Prompt Templates

### Open and Inspect a Page

```
Open the target page with agent-browser, list the visible interactive elements, and summarize the page purpose.
```

### Fill a Known Form

```
Use the current snapshot refs to fill the contact form fields, submit it, and verify the resulting page state.
```

### Capture Evidence for a Bug

```
Start a recorded browser session, reproduce the issue step by step, take a full page screenshot, and close the session.
```

### Extract Structured Page Content

```
Navigate to each approved URL, refresh refs after every page change, extract visible text and links, and note any access failures.
```

## Limitations

- Requires the inference.sh CLI and an authenticated account before use.
- Browser content, screenshots, and recordings may be handled by the remote service.
- Element refs change after navigation and must be refreshed before later actions.
- The skill does not enforce site terms, scraping policy, or sensitive data safeguards.

## Best Practices

- Use only approved URLs and respect site terms, rate limits, and access controls.
- Refresh snapshots after navigation, submissions, modals, or any dynamic page update.
- Disable recording and redact screenshots when pages may contain credentials or private data.

## Anti Patterns

- Do not use stale @e refs after a page changes or reloads.
- Do not record login, payment, admin, or customer data workflows without explicit approval.
- Do not use proxy rotation to bypass rate limits, identity controls, or geographic restrictions.

## Security Audit

- Audited at: 2026-07-06T16:11:36.244\+00:00
- Summary: Most static command, URL, path, and device findings are documentation or shell-template false positives. Confirmed risks include browser capture upload, SOCKS proxy support, cookie extraction guidance, sensitive session recording examples, and arbitrary page JavaScript execution. No prompt injection attempt was found in the reviewed files.

## Stats

- Views: 65
- Downloads: 9
- Favorites: 0
- Popularity score: 0
