browser
Browser automation over Chrome DevTools Protocol (CDP) on :9222. Use to inspect and navigate named tabs, capture compact accessibility or readable-content…
от hyper-code-harness★ 22 звезды на GitHub
Установить browser в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
browser
Drives the user's real Chrome through CDP. Chrome must expose a debugging endpoint at CDP_BROWSER_URL (default http://127.0.0.1:9222). The plugin attaches to existing tabs or creates named background tabs and keeps connection handles in runtime state.
Starting Chrome
The plugin attaches to a running Chrome; it does not assume one exists. Bring it up through the plugin rather than by hand:
hyper repl 'await ctx.fns.chrome.ensure({})' # start only if none answers
hyper repl 'await ctx.fns.chrome.ensure({ noStart: true })' # health check, never launches
hyper repl 'await ctx.fns.chrome.start({})' # force a fresh launch
hyper repl 'await ctx.fns.chrome.profileDir({})' # which profile would be used
The profile is the point. Chrome must open the directory that holds the
logged-in sessions — the Google accounts, UpToDate, Ramp, everything the
plugins reach through the browser. Starting on the wrong one looks exactly like
"everything logged itself out". chrome.profileDir resolves it in this order:
CDP_USER_DATA_DIRif set;~/.hyper/browser/chrome-profile— the Hyper-owned location;~/uniskill/skills/browser/chrome-profile— where the real ~3.7 GB of sessions still lives after the uniskill migration, reported aslegacy: true.
Moving that directory into the Hyper-owned path is a deliberate step (copy it while Chrome is closed, then verify a login), not something the plugin does on its own.
Why a separate instance. A Chrome already running on the default profile
cannot be given a debugging port after the fact — the flag only applies at
launch. So chrome.start opens its own instance on the profile above, and your
everyday Chrome keeps running untouched.
Why tmux. Chrome is launched inside a detached tmux session (chrome-cdp,
override with CDP_TMUX_SESSION) instead of as a child of the runtime. A child
shares the server's process group, so every Hyper restart would close the
browser and drop the sessions the profile exists to keep.
| variable | meaning | default |
|---|---|---|
CDP_BROWSER_URL |
endpoint the plugin talks to; its port is what Chrome opens | http://127.0.0.1:9222 |
CDP_USER_DATA_DIR |
user-data directory | resolved as above |
CDP_PROFILE |
profile directory inside it | Profile 1 |
CDP_LOAD_EXTENSION |
unpacked extension, "" to disable |
bundled arc-sidebar when present |
CDP_TMUX_SESSION |
session Chrome runs in | chrome-cdp |
CHROME_BIN |
Chrome binary | platform default |
Live view: hand a tab to a human
browser.liveView({ tab }) returns { url } — a page of this Hyper that shows one Chrome tab and lets a
person click, type, scroll and switch tabs in it. Give that link to the human when the page needs a
person, not the agent:
- a CAPTCHA, "are you human" check or bot wall;
- a two-factor prompt, SMS/app code, passkey or security question;
- signing in, re-entering a password, choosing an account, consent that requires the account owner;
- anything the user must confirm personally (payment, sending, deleting).
Then stop driving that tab: say what you need the person to do, wait for them to tell you they are done,
and only then continue (browser.snapshot first — the page has changed). browser.liveViewStatus({})
shows whether a viewer is connected; browser.liveViewStop({}) disconnects viewers when the hand-off is
over or the link must be revoked.
const { url } = await ctx.fns.browser.liveView({ tab: "main" }); // named session or targetId
await ctx.fns.browser.liveView({}); // the most recent page
await ctx.fns.browser.liveView({ tab, cdp: "http://127.0.0.1:9230" }); // another Chrome, if allowed
When the person is in the chat, show the tab on the canvas instead of a link: the browser.live kind is the
same live page in a canvas tab (Chrome's own tabs, back, forward and address bar, no second canvas bar). It is also
how a site that forbids framing (Google, GitHub, sign-in pages) is shown on the canvas. browser.page is the same
page at an address, /rpc/browser.page?{"target":"<id>"}, for a chat link or a browser tab.
await ctx.fns.canvas.show({ kind: "browser.live", args: { url: "https://www.google.com" } }); // a new Chrome tab
await ctx.fns.canvas.show({ kind: "browser.live", args: { tab: "main" } }); // an open one
How it works: /browser/live (page) and /browser/live/socket ($ws_ WebSocket route) are ordinary
Hyper routes behind the same sign-in. Per viewer the socket opens its own CDP connection, attaches to
the target, enables Emulation.setFocusEmulationEnabled (so a background tab keeps painting) and starts
Page.startScreencast; the JPEG frames go to the viewer unchanged, the viewer's every pointer move,
button, wheel and key comes back as Input.dispatchMouseEvent / Input.dispatchKeyEvent /
Input.insertText — real, isTrusted input with the human's own
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- VALIDATION.md
- package.json
- probes/probe-bg-scroll.ts
- probes/probe-screencast.ts
- probes/start-test-chrome.sh
- src/browser/$canvas_live.ts
- src/browser/$route_live_GET.ts
- src/browser/$script_live.js
- src/browser/$setting_liveCdpAllow.ts
- src/browser/$setting_liveQuality.ts
- src/browser/$setting_virtualPasskeys.ts
- src/browser/$start.ts
- src/browser/$style_live.css
- src/browser/$ws_live_socket.ts
- src/browser/LiveConn.ts
- src/browser/act.test.ts
- src/browser/act.ts
- src/browser/actions.test.ts
- src/browser/canvasLive.test.ts
- src/browser/check.ts
- src/browser/click.ts
- src/browser/closeSessions.ts
- src/browser/evaluate.ts
- src/browser/fill.ts
- src/browser/googleAI.ts
- src/browser/googleAIFollowUp.ts
- src/browser/googleSearch.test.ts
- src/browser/googleSearch.ts
- src/browser/hover.ts
- src/browser/live.test.ts
- src/browser/liveBase.ts
- src/browser/liveCdp.ts
- src/browser/liveConnect.ts
- src/browser/liveKey.ts
- src/browser/liveMouse.ts
- src/browser/liveProfile.ts
- src/browser/liveView.ts
- src/browser/liveViewStatus.ts
- src/browser/liveViewStop.ts
- src/browser/navigate.ts
FAQ
Что делает скилл browser?
Browser automation over Chrome DevTools Protocol (CDP) on :9222. Use to inspect and navigate named tabs, capture compact accessibility or readable-content snapshots, interact with pages, run Google workflows, take screenshots in the user's real Chrome, and hand a tab to a human through a live-view link (CAPTCHA, 2FA, sign-in).
Как установить скилл browser?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл browser запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…