| name | agent-browser |
| description | Browser automation tool. Used to capture project websites, DApp pages and
other JS-rendered content, extract page text and interactive elements, and
assist with research-oriented data collection.
|
| metadata | {"author":"NotevenDe","version":"1.1.0","requires":{"bins":["node","npm","agent-browser"]}} |
Agent Browser — Page Crawling and Data Extraction
Installation
CLAWBOT must ensure agent-browser is available before any browsing task:
which agent-browser || npm install -g agent-browser
agent-browser install
Purpose
CLAWBOT uses this in Research Step 2 (explore & collect) when it encounters
pages that require JS rendering.
Suitable for: project official websites, DApp pages, and dynamic pages on
aggregator platforms.
Core Workflow
agent-browser open <url>
agent-browser wait --load networkidle
agent-browser snapshot -i
agent-browser get text @e1
agent-browser get html @e1
agent-browser get attr @e1 href
agent-browser get title
agent-browser get url
agent-browser get count ".item"
agent-browser click @e1
agent-browser fill @e2 "keyword"
agent-browser scroll down 500
agent-browser scrollintoview @e1
agent-browser press Enter
agent-browser screenshot --full
agent-browser pdf output.pdf
agent-browser close
Wait Strategies
agent-browser wait @e1
agent-browser wait 2000
agent-browser wait --text "Success"
agent-browser wait --url "/dashboard"
agent-browser wait --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 "user@test.com"
Output Format
Add --json for structured output:
agent-browser snapshot -i --json
agent-browser get text @e1 --json
Notes
@ref changes after page navigation; always re-snapshot
- Use
fill for inputs (clears old value), not type
- For dynamic pages,
wait --load networkidle before snapshot
- Use
--headed to see the browser window for debugging