agent-browser
它能做什么
这项技能让 AI 智能体控制浏览器来完成网页任务。适合填写表单、检查页面或从网站提取数据等任务。
适用场景
- ✓当你需要打开网页、逐步点击并填写表单的时候。
- ✓当你想要页面的截图,或从页面中提取数据的时候。
- ✓当你需要测试网页应用,或使用需要登录的网站的时候。
技能链接
https://github.com/Tencent/WeKnora/blob/main/internal/application/service/builtin_skills/agent-browser/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请打开这个网站,填写联系表单,并对确认页面截图。”
每周 5 个新技能,1 分钟读完。
工作原理
它会运行一个预装的命令行浏览器,并在各步骤之间保持打开。智能体会读取页面上的可交互元素,每次对一个元素进行操作,并在每次变化后重新读取页面。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
agent-browser (browser inside the sandbox)
The CLI is already installed. Do not install it again, do not run
agent-browser install, and never install a browser yourself: the sandbox
pins its own Google Chrome. Run it with shell_exec and without skill_name.
Every call is one command; the browser stays open between calls.
Start here
This file is only the map. Load the real usage guide from the CLI itself, so the instructions always match the installed version:
agent-browser skills get core # workflows, common patterns, troubleshooting
agent-browser skills get core --full # adds the full command reference
agent-browser skills list # specialized guides bundled with the CLI
For quick tasks the loop below is enough; read core before anything harder
(waits, iframes, multiple tabs, downloads, auth flows).
Basic loop
agent-browser open https://example.com # the window opens on the Desktop tab
agent-browser snapshot -i # interactive elements as @e1, @e2, ...
agent-browser click @e2
agent-browser fill @e3 "text to type"
agent-browser screenshot /workspace/output/page.png
agent-browser close # closes the browser; the screen stays
Run snapshot -i again after every page change: refs from an older snapshot
go stale. agent-browser --help lists every other command.
Screens
The browser always opens as a visible window on the user's Desktop tab, so
the user can watch it and take over. Do not ask the user whether to show it,
and do not pass any flag to hide or show it. The user may click in the same
window while you work: run snapshot -i again before acting if the page may
have changed. A captcha, 2FA code or password is for the user to type in that
window, never in the chat.
Rules
- Do not pass
--session,--profile,--cdp,--auto-connect,--stateor--executable-path. The sandbox supplies the profile, the session and the browser; those flags are discarded. - Do not set DISPLAY, and do not target display :0. That screen belongs to other sessions.
- Close the browser only with
agent-browser close. Neverpkill/killchrome or agent-browser processes: other sessions' browsers run on this machine too, andagent-browser closeonly ever touches this session's own browser. - Cookie state is saved in a machine-level seed and restored before startup navigation. Live browsers mirror missing cookies and localStorage keys; existing keys are not overwritten. A receiving page may reload once idle. localStorage is shared from open pages, not persisted in the cookie seed. Cookie and password database files are shared; history, cache and IndexedDB stay in each profile. Signing out may affect shared login state. Windows remain on this session's screen. Never print cookie, password or token files.
常见问题
它会使用我个人的 Chrome 浏览器吗?
不会。它是沙箱内的独立浏览器,而不是你电脑上的本地浏览器。
它会自行安装浏览器吗?
不会。浏览器已经安装好,技能会告诉智能体不要再安装另一个。
截图保存在哪里?
它们可以保存到工作区输出文件夹中的某个路径。
详情
作者的原始描述
Use when the task needs a real web browser inside the sandbox - open a page, click, fill forms, take screenshots, extract or scrape data, test a web app, or use a site that needs a login. Drives the preinstalled agent-browser CLI; the browser window shows on the user's Desktop tab. This is NOT the local_browser tool, which controls the user's own Chrome on their computer.
repo: Tencent/WeKnora
热度
- GitHub 星标
- 36k
- 排名
- #7587
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …