360 Secure SkillHub
360 安全技能中心

Ai Pa Browser Clawdbot

该 Skill 封装 agent-browser 无头浏览器命令行工具,用无障碍树快照获取交互元素引用,再以 @ref 方式执行点击、填写、按键、选择与滚动等操作,并支持等待条件、会话状态保存/加载,适合多步网页流程与复杂单页应用的确定性元素选择。

netanel-abergel
netanel-abergel
热度 43.25
最近更新 2026-05-11 17:39:39
分类:自动化依赖:联网浏览搜索 / 读写文件应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ai-pa-browser-clawdbot
Metadata
name
ai-pa-browser
description
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection
metadata
{"clawdbot":{"emoji":"🌐","requires":{"commands":["agent-browser"]},"homepage":"https://github.com/vercel-labs/agent-browser"}}

Agent Browser Skill

Fast browser automation via accessibility tree snapshots and ref-based element selection.

When to Use

Use agent-browser (this skill) when:

  • Automating multi-step web workflows
  • Need deterministic element selection
  • Working with complex SPAs or login flows
  • Need parallel sessions or video recording

Use built-in browser tool when:

  • Need screenshots/PDFs for visual analysis
  • Browser extension integration needed

Core Workflow

agent-browser open <url>
agent-browser snapshot -i --json   # Get interactive elements with refs
agent-browser click @e2
agent-browser fill @e3 "text"
agent-browser wait --load networkidle
agent-browser snapshot -i --json   # Re-snapshot after navigation

Most Common Commands

# Navigate
agent-browser open <url> | back | forward | reload | close

# Snapshot
agent-browser snapshot -i --json          # Always use these flags
agent-browser snapshot -s "#main" -i      # Scope to selector

# Interact (use @refs from snapshot)
agent-browser click @e1
agent-browser fill @e2 "text"
agent-browser press Enter
agent-browser select @e3 "value"
agent-browser scroll down 500

# Wait
agent-browser wait --load networkidle
agent-browser wait --text "Success"
agent-browser wait @e1

# State
agent-browser state save auth.json
agent-browser state load auth.json

Installation

npm install -g agent-browser
agent-browser install           # Download Chromium
agent-browser install --with-deps  # Linux: + system deps

Full Reference

For complete command list: read skills/ai-pa-browser-clawdbot/references/commands.md For examples: read skills/ai-pa-browser-clawdbot/references/examples.md