Output format·Web, Search & Scraping

Browser Automation with agent-browser

Automate browser interactions using agent-browser CLI — navigate, click, fill forms, scrape content, take screenshots, and more.

You say
Install this skill Read the source first Free Written by devtodollars · unverified publisher
Context cost
2.1k tokensestimated from the bundle, loaded when it triggers
Bundle
1 file · 8.6 kBtext throughout, nothing executable
Licence
MITfree to use
Last change
no release on file
Servers it uses
Noneruns standalone

What it does

Automate browser interactions using agent-browser CLI — navigate, click, fill forms, scrape content, take screenshots, and more.

Installed, it changes the agent in these ways.

What this skill changes about the agent is not written down here yet. The listing was collected from its source, and the description is in its own SKILL.md.

Output format

Produces one artefact, exactly shaped.

browserautomationagent

The skill itself

This is the whole product. A skill is instructions the model reads, so there is nothing behind the listing you cannot see first — the front matter loads with every session, and the body below it loads when the skill triggers.

SKILL.md8.6 kB · 267 lines
--- name: browser description: Automate browser interactions using agent-browser CLI — navigate, click, fill forms, scrape content, take screenshots, and more. argument-hint: <command> [args...] allowed-tools: Bash(npx agent-browser *) ---
8# Browser Automation with agent-browser
9
10Control a headless Chromium browser via CLI commands. All commands are run with npx agent-browser <command>.
11
12## Setup (first time only)
13
14```bash
15npx agent-browser install
16```
17
18## Navigation
19
20| Command | Description |
21|---|---|
22| open <url> | Navigate to a URL |
23| close | Close browser |
24| tab | List open tabs |
25| tab new [url] | Open new tab |
26| tab <n> | Switch to tab n |
27| tab close [n] | Close tab |
28| window new | Open new browser window |
29| frame <selector> | Switch to iframe |
30| frame main | Return to main frame |
31
32## Page Inspection (use these to understand page structure)
33
34| Command | Description |
35|---|---|
36| snapshot | Get accessibility tree with @e1, @e2 element refs (best for AI) |
37| screenshot [path] | Capture screenshot |
38| screenshot --full | Full page screenshot |
39| screenshot --annotate | Screenshot with numbered element labels |
40| get text <sel> | Extract text content |
41| get html <sel> | Get innerHTML |
42| get value <sel> | Get input value |
43| get attr <sel> <attr> | Get element attribute |
44| get title | Get page title |
45| get url | Get current URL |
46| get count <sel> | Count matching elements |
47| get box <sel> | Get bounding box |
48| get styles <sel> | Get computed styles |
49| is visible <sel> | Check if element is visible |
50| is enabled <sel> | Check if element is enabled |
51| is checked <sel> | Check if checkbox is checked |
52
53## Clicking & Interaction
54
55| Command | Description |
56|---|---|
57| click <sel> | Click an element |
58| click <sel> --new-tab | Click, opening in new tab |
59| dblclick <sel> | Double-click |
60| hover <sel> | Hover over element |
61| focus <sel> | Focus element |
62| scroll <dir> [px] | Scroll up/down/left/right |
63| scrollintoview <sel> | Scroll element into view |
64| drag <src> <tgt> | Drag and drop |
65
66## Text Input
67
68| Command | Description |
69|---|---|
70| fill <sel> <text> | Clear field and type text |
71| type <sel> <text> | Type into focused element (appends) |
72| keyboard type <text> | Type with real keystrokes |
73| keyboard inserttext <text> | Insert text without key events |
74| press <key> | Press a key (Enter, Tab, Control+a, etc.) |
75| keydown <key> | Hold key down |
76| keyup <key> | Release key |
77
78## Form Controls
79
80| Command | Description |
81|---|---|
82| check <sel> | Check a checkbox |
83| uncheck <sel> | Uncheck a checkbox |
84| select <sel> <val> | Select dropdown option |
85| upload <sel> <files> | Upload file(s) to input |
86
87## Semantic Find (locate elements by meaning, not CSS)
88
89```
90find role <role> <action> [value] # By ARIA role
91find text <text> <action> # By visible text
92find label <label> <action> [value] # By label
93find placeholder <ph> <action> [value] # By placeholder
94find alt <text> <action> # By alt text
95find title <text> <action> # By title attribute
96find testid <id> <action> [value] # By data-testid
97find first <sel> <action> [value] # First match
98find last <sel> <action> [value] # Last match
99find nth <n> <sel> <action> [value] # Nth match
100```
101
102**Actions:** click, fill, type, hover, focus, check, uncheck, text
103
104**Options:** --name <name> (filter by accessible name), --exact (exact match)
105
106**Examples:**
107```bash
108npx agent-browser find role button click --name "Submit"
109npx agent-browser find text "Sign In" click
110npx agent-browser find label "Email" fill "user@example.com"
111npx agent-browser find placeholder "Search..." fill "vinyl records"
112```
113
114## Waiting
115
116| Command | Description |
117|---|---|
118| wait <selector> | Wait for element to appear |
119| wait <ms> | Wait N milliseconds |
120| wait --text "text" | Wait for text to appear |
121| wait --url "**/path" | Wait for URL pattern |
122| wait --load networkidle | Wait for network idle |
123| wait --fn "window.ready" | Wait for JS condition |
124
125## Cookies & Storage
126
127| Command | Description |
128|---|---|
129| cookies | Get all cookies |
130| cookies set <name> <val> | Set a cookie |
131| cookies clear | Clear cookies |
132| storage local | Get all localStorage |
133| storage local <key> | Get localStorage key |
134| storage local set <k> <v> | Set localStorage value |
135| storage local clear | Clear localStorage |
136| storage session | Same commands for sessionStorage |
137
138## Network Interception
139
140| Command | Description |
141|---|---|
142| network route <url> | Intercept requests matching URL |
143| network route <url> --abort | Block matching requests |
144| network route <url> --body <json> | Mock response body |
145| network unroute [url] | Remove intercept routes |
146| network requests | View tracked requests |
147| network requests --filter <pat> | Filter requests by pattern |
148
149## JavaScript Execution
150
151| Command | Description |
152|---|---|
153| eval <js> | Run JavaScript in page context |
154| eval -b <base64> | Run base64-encoded JS |
155
156## Browser Configuration
157
158| Command | Description |
159|---|---|
160| set viewport <w> <h> | Set viewport size |
161| set device <name> | Emulate device (e.g. "iPhone 14") |
162| set media dark | Emulate dark color scheme |
163| set media light | Emulate light color scheme |
164| set offline on | Enable offline mode |
165| set offline off | Disable offline mode |
166| set geo <lat> <lng> | Set geolocation |
167| set headers <json> | Set extra HTTP headers |
168| set credentials <user> <pass> | Set HTTP basic auth |
169
170## Mouse Control
171
172| Command | Description |
173|---|---|
174| mouse move <x> <y> | Move cursor to coordinates |
175| mouse down [button] | Press mouse button |
176| mouse up [button] | Release mouse button |
177| mouse wheel <dy> [dx] | Scroll wheel |
178
179## State Persistence
180
181| Command | Description |
182|---|---|
183| state save <path> | Save auth/session state |
184| state load <path> | Load saved state |
185| state list | List saved states |
186| state clear [name] | Clear a saved state |
187| state clear --all | Clear all saved states |
188
189## Debugging
190
191| Command | Description |
192|---|---|
193| console | View console messages |
194| errors | View uncaught exceptions |
195| highlight <sel> | Visually highlight element |
196| trace start [path] | Start trace recording |
197| trace stop [path] | Stop and save trace |
198| profiler start | Start CPU profiling |
199| profiler stop [path] | Save profile |
200| pdf <path> | Save page as PDF |
201
202## Comparison & Diffing
203
204| Command | Description |
205|---|---|
206| diff snapshot | Compare current vs previous snapshot |
207| diff snapshot --baseline <file> | Compare against saved file |
208| diff screenshot --baseline <file> | Visual pixel comparison |
209| diff url <a> <b> | Compare two URLs |
210
211## Typical Workflow
212
2131. **Open a page:** open http://localhost:3000
2142. **Inspect structure:** snapshot (returns element refs like @e1, @e2)
2153. **Interact using refs:** click @e3 or fill @e5 "my text"
2164. **Verify results:** get text @e7 or screenshot
2175. **Close when done:** close
218
219## Selectors
220
221Commands accept these selector types:
222- **Element refs** from snapshot: @e1, @e2, etc. (preferred for AI)
223- **CSS selectors:** #id, .class, div > span
224- **XPath:** //button[@type="submit"]
225- **Semantic find:** Use the find command family above
226
227## Default Login Flow
228
229When testing locally, log in first before performing authenticated browser actions:
230- URL: http://localhost:3000/auth
231- Use Supabase Auth (email/password)
232
233## Project-Specific Pages
234
235Key pages to test in the MVP boilerplate:
236
237| Page | URL | Notes |
238|---|---|---|
239| Landing | http://localhost:3000 | Sections: Navbar, Hero, Logos, Items, Stats, Pricing, FAQ, Cta, Footer |
240| Sign In / Sign Up | http://localhost:3000/auth | Supabase Auth UI |
241| Account | http://localhost:3000/account | Authenticated - user profile & subscription |
242| Pricing | http://localhost:3000/#pricing | Stripe checkout integration |
243
244## Testing Dark Mode
245
246```bash
247# Toggle dark mode via the ModeToggle button in the navbar
248npx agent-browser find role button click --name "Toggle theme"
249
250# Or force via browser emulation
251npx agent-browser set media dark
252npx agent-browser set media light
253```
254
255## Testing Responsive Design
256
257```bash
258# Mobile
259npx agent-browser set viewport 375 812
260
261# Tablet
262npx agent-browser set viewport 768 1024
263
264# Desktop
265npx agent-browser set viewport 1440 900
266```
267
In the file
SKILL.md1,465 words
Files1
LicenceMIT
Why you can read it

Nothing in a skill executes. The client loads the text and the model follows it, so a skill can be audited the way a runbook is — by reading it.

What it costs in context

Skills are not billed by the call. They are paid for in context: every token the instructions occupy is a token your code, your diff and your conversation cannot use. Here is what this one takes and when it takes it.

≈60
always loaded
The name and description, so the model knows the skill exists and when to reach for it.
2,090
on trigger
The instruction body, read only when the skill fires.
1.1%
of a 200k window
Ten skills this size would take about 11% of the window before you open a file.
050k100k150k200k context window

2.1k tokens, estimated from the bundle at four bytes to the token, held for the rest of the session once it triggers. Middling. Fine to keep on in a project where you use it weekly, worth unloading in one where you never do.

Servers bill, skills cost

A server charges by the month. A skill charges once per session, in context, and then keeps charging it for as long as the session lives.

Before and after

The same question, put to the same model twice: once as it comes, and once with these instructions loaded.

No worked example has been published for this skill yet.

Adoption
Installsnone yet
Ratingno reviews yet

The procedure it runs

The procedure has not been published here. It is in the skill’s own SKILL.md, which its author has not sent to the marketplace yet.

Prose, not code

These steps are written for a model to follow, not executed by a runtime. It can still be told to skip one, and it will say so when it does.

Servers it uses

None. This skill calls no MCP servers at all.

Everything it needs is in the instructions, so it works in a project with nothing connected — the model reads the file and changes how it works with what it can already reach.

It writes no files and reaches no network. All it changes is how the model reasons and writes.

What it asks for
Writes filesno
Network accessno

Read from the allowed-tools line of this skill’s own SKILL.md. A skill grants no permissions of its own — it can only ask for tools your client already has.

What it will not do

Every skill is narrow, and the useful ones say where they stop. These are the jobs this one is the wrong tool for.

What this skill is not for has not been published here. Nothing is implied by that: it is a section the author has not filled in.

What is in the bundle

1 file, 8.6 kB on disk. A bundle is text throughout: the instructions the model reads, plus the templates it fills in.

  • SKILL.md8.6 kB
What is not in it

No dependencies and nothing executable: a skill is text the agent reads, so the bundle is 1 file you can review in full before installing. The MIT licence covers the templates and examples as well as the instructions.

Install

Installing copies the bundle into your project. Nothing runs at install time — the files sit on disk until the model reads them.

# Browser Automation with agent-browser · 2.1k tokens when loaded npx mcprush@latest skill add devtodollars/browser-automation-with-agent-browser

Writes to .claude/skills/browser-automation-with-agent-browser/ in the current project. Add --global to put it in your home directory instead, for every project.

Which clients pick it up on their own

A skill is a folder of text. A client with a skills folder reads it without being told; everywhere else the same text works, it is just handed to the model rather than found.

Claude Code.claude/skills/
Claude Desktop
ChatGPT
Cursor.cursor/skills/
VS Code.github/skills/
Codex CLI.agents/skills/
Gemini CLI.gemini/skills/
Grok.grok/skills/
Zed.agents/skills/
Windsurf.windsurf/skills/
Agent SDK.claude/skills/
HTTP / API
This release
Versionnot versioned
Publishedno release date on file
PriceFree
Referencedevtodollars/browser-automation-with-agent-browser

Versions

Its author publishes no version number, so there is nothing here to pin to: what you install is the folder as it stands today. Instructions change more often than APIs do — a skill can be rewritten entirely without anything it depends on moving.

v
  • No earlier releases have been published to the marketplace.
Pinning

Nothing to pin to: this skill carries no version number of its own. What you install is what the folder holds on the day you install it.

Reviews

no reviews yet · no installs yet

Nobody has reviewed this skill yet. The rating is the mean of the reviews written here, so there is none until somebody writes the first.

Who can post

Only accounts that have had the skill installed for fourteen days, so a review is written after living with it rather than after reading it. Publishers may reply once.

Who wrote it

DE
devtodollars

Publishes on mcprush.

0 servers listed1 skill listednot claimed
Profile
Publisher
Servers0
Claim this skill