Agent browser
Browser automation. NOT for plain HTTP fetches (use sh or py).From its SKILL.md
npx -y skills add kronael/tools --skill agent-browserAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.4 KB, as published. Nobody here has run it
Browser Automation with agent-browser
Core workflow
agent-browser open <url>agent-browser snapshot -i(interactive elements with refs like@e1)- Interact using refs
- Re-snapshot after navigation or significant DOM changes
Commands
# Navigation
agent-browser open <url> | back | forward | reload | close
# Snapshot
agent-browser snapshot [-i interactive] [-c compact] [-d depth] [-s selector]
# Interact (use @refs from snapshot)
agent-browser click|dblclick|hover @e1
agent-browser fill @e2 "text" # Clear and type
agent-browser type @e2 "text" # Type without clearing
agent-browser press Enter
agent-browser check|uncheck @e1
agent-browser select @e1 "value"
agent-browser scroll down 500
agent-browser upload @e1 file.pdf
# Get info
agent-browser get text|html|value @e1
agent-browser get attr @e1 href
agent-browser get title|url
agent-browser get count ".item"
# Screenshot/PDF
agent-browser screenshot [path.png] [--full]
agent-browser pdf output.pdf
# Wait
agent-browser wait @e1 | 2000 | --text "Success" | --url "pattern" | --load networkidle
# Semantic locators (alternative to refs)
agent-browser find role button click --name "Submit"
agent-browser find text "Sign In" click
agent-browser find label "Email" fill "[email protected]"
# Auth state
agent-browser state save|load auth.json
# Storage
agent-browser cookies [set name value | clear]
agent-browser storage local [set k v]
agent-browser eval "document.title"
Rules
- ALWAYS
agent-browser wait --load networkidle(or wait --text/--url) BEFORE snapshot on dynamic pages; NEVER snapshot directly afteropenon SPAs — refs will be stale - ALWAYS prefer
find role --name,find text,find labelover numbered@eNrefs;@eNrefs are valid only within one snapshot — NEVER reuse across navigations - ALWAYS
agent-browser screenshot ./tmp/err.png --fullbefore reporting an unexpected failure
Coordinate clicks (canvas, maps, custom renderers)
ALWAYS use mouse for coordinate-based clicks. JS MouseEvent has
isTrusted=false and is blocked by security-conscious apps; mouse sends
real CDP input events with isTrusted=true.
agent-browser mouse move 930 120
agent-browser mouse down
agent-browser mouse up