browser
它能做什么
这个技能让你的智能体在 Paradev 内的浏览器窗格中操作网页。适合希望智能体预览网站、检查页面或在网页流程中逐步点击的人。
适用场景
- ✓当你希望智能体打开本地网页应用并检查其外观时。
- ✓当你需要截图或读取页面控制台输出时。
- ✓当你希望智能体在你已登录的浏览器中填写表单或完成网页流程时。
技能链接
https://github.com/ParadevAI/Paradev/blob/main/plugins/superset/skills/browser/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请打开我在 localhost:3000 上的本地应用,截一张图,并告诉我控制台显示了什么。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会通过 Paradev 命令行,把命令发送到你可以看到的浏览器窗格,因此每一步都在你使用的同一会话中进行。它以文本形式读取页面,并通过点击和输入进行操作。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Paradev Browser Control
paradev is an alias for the superset CLI: every superset command here also runs as paradev.
Drive web pages through the browser panes inside a Paradev workspace with the
superset browser commands. Every operation runs in the pane the user can see,
against the pane's real, logged-in session. A raw Chrome DevTools Protocol (CDP)
endpoint covers anything the high-level verbs don't.
Choose a surface
- If a plain HTTP request or an API can answer (a public page, docs, a JSON
endpoint), use
curlor your fetch tool and skip the browser. - Default to the in-app pane whenever the page is, or can be, open in a workspace pane: previewing a dev server, verifying UI the user is watching, clicking through a flow in the app.
- Use Browser Use only when the panes cannot reach the target: a Chrome window
outside Paradev, a host with no desktop app attached (pane commands error
clearly there), or work that needs an isolated or cloud browser. Read
references/browser-use.mdbefore using it; it covers install consent, attaching, and cleanup.
Browser Use can also drive a pane, and for three kinds of pane task it's the
nicer tool: an open-ended goal to run end to end ("get through this signup"), a
long multi-step flow on a shifting UI, or a recorded walkthrough. If one of
those fits and Browser Use isn't installed, offer it once ("I can hand this to
Browser Use, which drives multi-step flows more cleanly, but it's a one-minute
install. Want that, or should I drive the pane directly?"), then respect the
answer for the rest of the session, and hand a pane to Browser Use only after
the user has said yes (the pane is their signed-in session and its CDP URL
carries a token). Don't offer it for a screenshot, one eval, or a plain read;
the pane verbs already cover those.
Establish the control surface
- Run
superset schema 2>/dev/null | jq -re '.commands[] | select(.path==["browser"]) | .commands[].path[1]' || superset browser --helpand requirelist,open,navigate,screenshot,eval,console, andcdp. The--helpfallback covers a CLI older than 1.34.0 (noschema) and a machine withoutjq. If the verbs are absent, runsuperset updateand recheck. The app-bundled CLI (~/.superset/bin/superset) updates only with the desktop app, so if it lacksbrowser, updating the app is the fix; checktype -a supersetfor another install before giving up. - Resolve the workspace. Inside a workspace, use
$SUPERSET_WORKSPACE_ID; otherwisesuperset workspaces list --local --jsonand pick the target. Pass--host <id>for a remote host. - Panes live in the desktop app. A host with no desktop attached (a standalone
superset start) has no panes and every command errors clearly; surface that rather than retrying.
Find or open a pane
Every pane has a stable paneId, scoped to its workspace: pass the same
--workspace you opened it under or the operation is rejected.
superset browser list --workspace <id> --json
superset browser open --workspace <id> --url https://example.com --json
superset browser open --workspace <id> --url http://localhost:3000 --target new-tab --json
--target new-tab opens a fresh tab and focuses it; the default current-tab
reuses the active browser pane. Opening needs the workspace visible in the
desktop app (the renderer creates the pane), so if it times out, ask the user to
open the workspace.
To put the page in the right sidebar beside the user's work instead, and when
superset panes --help succeeds (older CLIs lack panes), run
superset panes open browser --workspace <id> --url <url>
(superset:panes), then find the pane with
superset browser list --workspace <id> --json.
Drive with the high-level verbs
# Point an existing pane at a new URL
superset browser navigate --workspace <id> --pane <paneId> --url https://…
# Capture a PNG (base64 by default; --out writes a file)
superset browser screenshot --workspace <id> --pane <paneId> --out shot.png
# Read the pane's captured console output
superset browser console --workspace <id> --pane <paneId> --max-lines 100
# Evaluate JavaScript in the page and return the result
superset browser eval --workspace <id> --pane <paneId> \
--code "document.querySelector('h1')?.textContent"
Screenshot to see state, eval to read structured data (.textContent,
.value = …, element.click(), location.href), console to
常见问题
智能体可以使用我已登录的网站吗?
可以。操作会在窗格的真实会话中运行,因此页面会以你在那里已有的登录状态打开。
什么时候不应该使用窗格?
对于普通的公开页面或 API,简单的请求即可,该技能说明此时应跳过浏览器。
我可以观察它的工作过程吗?
可以。窗格在你的工作区中可见,因此你可以看到每一步的操作。
详情
作者的原始描述
Open, navigate, screenshot, read, click, and type in web pages from an agent. Use when the user asks to open a URL, preview or verify a running web app, check a page's console, fill a form, click through a web flow, or automate anything in a browser, including "open localhost:3000", "screenshot the page", "what does the console say", "click the submit button", "I'm logged in on Chrome". Drives the in-app browser pane of a Paradev (formerly Superset) workspace by default and Browser Use for browsers the panes cannot reach.
repo: ParadevAI/Paradev
热度
- GitHub 星标
- 16k
- 排名
- #10860
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …