一键导入
agent-browser
Browser automation for AI agents using agent-browser CLI. Token-efficient alternative to Playwright MCP with accessibility-first element selection.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Browser automation for AI agents using agent-browser CLI. Token-efficient alternative to Playwright MCP with accessibility-first element selection.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Tycono usage guide and project understanding. WHEN: user asks "how does tycono work", "what can tycono do", "how to use the AI team", "what are the commands", "what is a wave", "what is an agency", "how to check results", "where are the logs", "how to see what the team did", first time using tycono. WHEN NOT: user is already running a wave, asking about unrelated code, general coding questions.
AKB document hygiene checker. Finds documents that confuse AI agents.
Knowledge documentation gatekeeper. Dynamic domain expert analysis to find optimal placement and connections.
| name | agent-browser |
| description | Browser automation for AI agents using agent-browser CLI. Token-efficient alternative to Playwright MCP with accessibility-first element selection. |
Token-efficient browser automation CLI for AI agents. ~82% fewer tokens than Playwright MCP.
# Install globally (one-time)
npm install -g agent-browser
# Verify installation
agent-browser --version
# If not installed, the agent should run the install command above before proceeding.
# Install check
agent-browser --version
# Core flow: open → snapshot → action
agent-browser open <url>
agent-browser snapshot # accessibility tree (@e1, @e2, ...)
agent-browser click @e3
agent-browser fill @e5 "text"
agent-browser screenshot /tmp/page.png
| Command | Description |
|---|---|
open <url> | Open a page |
snapshot | Return accessibility tree + element refs |
click <@ref> | Click an element |
fill <@ref> <text> | Fill an input field |
type <@ref> <text> | Type text (preserves existing) |
press <key> | Press key (Enter, Tab, Control+a) |
screenshot [path] | Take screenshot |
pdf <path> | Save as PDF |
wait <sel|ms> | Wait for element or time |
scroll <dir> [px] | Scroll (up/down/left/right) |
close | Close browser |
Accessibility tree @ref is the default:
agent-browser snapshot
# Output example:
# @e1 heading "Welcome"
# @e2 button "Login"
# @e3 textbox "Email"
agent-browser click @e2
agent-browser fill @e3 "user@example.com"
CSS selector and XPath also supported:
agent-browser click "#submit-btn"
agent-browser click "xpath=//button[@type='submit']"
agent-browser find role button click # Find by role and click
agent-browser find text "Submit" click # Find by text
agent-browser find label "Email" fill "a@b.com"
agent-browser find testid "login-btn" click
agent-browser get text @e1 # Get text content
agent-browser get html @e1 # Get HTML
agent-browser get value @e3 # Get input value
agent-browser get url # Current URL
agent-browser get title # Page title
agent-browser get count "li" # Element count
agent-browser is visible @e1
agent-browser is enabled @e2
agent-browser is checked @e3
agent-browser network requests # List requests
agent-browser network route "*/api/*" --abort # Block requests
agent-browser network route "*/api/*" --body '{}' # Mock response
agent-browser network unroute "*/api/*"
agent-browser set viewport 1280 720
agent-browser set device "iPhone 15"
agent-browser set media dark
agent-browser set offline on
agent-browser open "http://localhost:3000"
agent-browser snapshot
# → Check @ref, then take action
agent-browser click @e5
agent-browser snapshot # Verify state change
agent-browser open "http://localhost:3000/login"
agent-browser snapshot
agent-browser fill @e3 "user@example.com"
agent-browser fill @e4 "password123"
agent-browser click @e5 # submit button
agent-browser wait 2000
agent-browser screenshot /tmp/after-login.png
agent-browser open "http://localhost:3000"
agent-browser wait "h1"
agent-browser get text "h1"
agent-browser is visible "#success-message"
| Scenario | Recommended |
|---|---|
| AI agent web browsing/verification | agent-browser (token efficient) |
| Complex E2E test suites | Playwright (richer API) |
| Advanced network interception | Playwright |
| Quick UI checks | agent-browser (simple CLI) |