Logo Browser Skill

Browser Skill

Tổ chứcPhổ biến
Tencent
browser-skill

Use when the user asks to automate their logged-in Chromium browser: visit and read pages, fill forms, scrape data, click through flows, regression-test a PR's UI, validate a deployed page, or operate a tab they identify. Requires the bsk CLI and browser extension.

Add to TypingMind

Tổng quan

Nhà phát hànhTencent
Kho mãBrowserSkill
Tên kỹ năngbrowser-skill
Sao
4K
Bản fork
287
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được Tencent công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Browser Skill trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Tencent/BrowserSkill/tree/main/crates/bsk-cli/skill
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Tencent/BrowserSkill.git /tmp/BrowserSkill
mkdir -p .claude/skills
cp -r /tmp/BrowserSkill/crates/bsk-cli/skill .claude/skills/browser-skill
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Browser Skill trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Browser Skill ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Browser Skill với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

browser-skill

Use bsk to work in an Agent Window with the user's existing logins. User tabs require explicit borrowing. This skill does not install the extension or handle advice-only tasks. Never extract credentials, cookies, tokens, or other secrets.

Before starting a session

For remote setup or pairing, follow the remote guide.

Local commands normally auto-start the daemon. If the host terminates background children after each shell call, including on Windows, complete these steps first:

  1. Reuse the host daemon's existing BSK_HOME (or its default if unset). Set BSK_AUTO_START=0 and run bsk status --json. Reuse a working daemon; an empty browsers list means the extension still needs connecting. Permission errors, timeouts or invalid replies do not prove the daemon is absent.
  2. Only if the check reports a missing daemon and no host task is already starting it, run bsk daemon start --foreground with the same BSK_HOME in the host's approved persistent background task outside the per-command sandbox. Keep that task alive; --foreground alone cannot prevent host cleanup. The sandbox guide covers the normal host-terminal alternative and PowerShell examples.
  3. After launching, or if a host task is already starting the daemon, run bsk status --json in a separate shell tool call with the same BSK_HOME and BSK_AUTO_START=0. While startup is pending, make at most five checks with one-second pauses for missing-endpoint or transient startup errors; stop on permission/protocol errors. Proceed only after a successful status response. If the host task exits (including a lock error) or readiness never succeeds, inspect its output and bsk logs, then recheck status for another daemon before deciding whether startup is still needed. Report unresolved errors; do not loop on launches, delete runtime files or restart a shared daemon.

Use the same BSK_HOME and BSK_AUTO_START=0 on EVERY sandboxed command; environment settings may not persist between shell calls. Keep browser commands sandboxed. For other startup failures, retry once, then use bsk doctor. A local process identity warning permits browser commands when IPC works.

Task workflow

  1. Define success from the user's request. Start bsk session start --json and retain its session_id. With multiple browsers, run bsk browsers and add --browser <id-or-label> to start. For background work, add --no-focus to session start only.

  2. For a new page, navigate; for an existing user tab, follow Borrowing below. Read the page before interacting:

    sh
    bsk navigate https://example.com --session <id>
    bsk observe --session <id>
  3. Choose an action using fresh refs from that observation. Observe again after navigation or meaningful DOM changes. Check an ambiguous result once; once success is visible, stop acting rather than refreshing or checking again.

  4. Always run bsk session stop <id> on success and failure, unless keeping the session open is part of the user's request. This also returns borrowed tabs. Returned tabs stay open in the user's window. Do not rely on idle cleanup or stop/restart the shared daemon to finish a task.

Replace <id>, example refs and values with actual results and task inputs. Every session-scoped command needs --session <id>; session stop takes the ID positionally. For unfamiliar commands or flags, consult bsk --help or bsk <command...> --help instead of guessing; no need to read all help at startup. When following a trace, use its semantic targets and values in order, not its old refs. Stop at the requested goal; a trace grants no additional authorization.

Read and interact

Prefer observe for text, controls and @eN refs. Navigation invalidates refs; large DOM changes can stale them too. Re-observe before the next interaction. Use refs for iframe/shadow-root targets; CSS selectors search the main document.

Choose the relevant example, using a ref that actually appeared on the page:

NeedCommand
Clickbsk click @e3 --session <id>
Fill a fieldbsk fill @e3 --value "text" --session <id>
Select an optionbsk select @e3 --value "option-value" --session <id>
Press a keybsk press Enter --ref @e3 --session <id>
Reveal a hover menubsk hover @e3 --session <id>
Reveal an elementbsk scroll-to @e3 --session <id>
Scroll with wheel inputbsk wheel --delta-y 600 --session <id>
Focus or leave a fieldbsk focus @e3 --session <id> / bsk blur @e3 --session <id>
  • select uses the option's value, not its visible label.
  • Hover markers such as [hover first: Shoes | Bags], [has-submenu], or [expanded] identify triggers. Hover the trigger, observe, then use the revealed item's ref. Listed labels are not refs; do not click the trigger unless its own action is wanted. If an expected control is missing and no marker identifies a trigger, try observe --probe-hover once. It touches the live page and costs seconds; use targeted hover once the trigger is known.
  • scroll-to returns ancestor-clipped bounds in top-level viewport CSS pixels. Partial visibility suffices; hidden/fully clipped targets fail. It does not test occlusion. wheel sends signed deltas (at least one nonzero), not a guaranteed scroll distance. An optional target is scrolled into view first; without one, input lands at the viewport centre. Observe to check the page's response.

Use snapshot for a static accessibility tree, get-html for exact markup or hidden metadata, and screenshot for visual content or requested visual evidence. Do not start with HTML/images just to find ordinary controls; obtain fresh refs before interacting with controls found that way.

Large observations

There is no default token cap. With observe --max-tokens <n>, follow a returned next_cursor/@more when relevant content remains:

sh
bsk observe --cursor <token> --session <id>

Each page replaces the ref map: use its refs before continuing and never reuse refs from earlier pages. Continuation reads the same capture, without refreshing or hovering; do not combine it with depth changes or hover probing. New observe/ snapshot or changed page identity invalidates continuation; then observe afresh.

Borrowing and browser settings

List before borrowing, and return the tab as soon as the relevant step ends:

sh
bsk tab list --scope user --session <id>
bsk tab borrow <tab-id> --session <id>
bsk tab return <tab-id> --session <id>

Never invent tab IDs or keep a user tab across unrelated work. Do not repeat pending, denied or timed-out borrows. For borrow_outcome_unknown, inspect tab/ session state first: the tab may already have moved. Do not bypass an outcome through another browser backend. tab borrow --timeout 120s changes only the confirmation wait (default 60s); custom waits require daemon and extension protocol 1.2+.

The extension's saved Automation settings control borrow confirmation and human help independently; both default on and apply to existing sessions too. Read interaction in session start --json or session list --json when needed. Deprecated --unattended, --no-confirm, and BSK_REQUEST_HELP=off cannot override these settings. Never change browser storage/settings to bypass them. Human-help availability does not require permission for every action or grant extra authority. request-help requires daemon protocol 1.3; update CLI, daemon and extension for full settings support. A feature's version error does not disable other operations.

Remote content reads/actions require task-created or borrowed tabs. Page-opened popups gain no control automatically; an unowned tab inside the Agent Window needs the user to move it to a user window before borrowing. Remote upload/download are unsupported; screenshots work.

Human steps and recovery

With help enabled, request help for login, CAPTCHA, OTP, payment confirmation, consent, or after two attempts make no progress:

sh
bsk request-help --session <id> --prompt "Please complete sign-in" --target @e3

Use a precise prompt and fresh targets; omit --target when no control fits. Use completion criteria only for a clear, stable success signal.

ResultNext step
Help continued / completedObserve again, then resume with fresh refs.
Help cancelled / timed_outRespect rejection or the blocker; do not repeat the request.
Help disabledNo human action was confirmed. Re-observe and follow the disabled-help rules below.
Stale refObserve and retry the intended action once.
Unknown tab/sessionList current tabs/sessions; never guess IDs or use another task's session.
Timeout or unknown effectInspect current state before retrying; the action may already have happened.
fill_value_mismatchRead the field: formatting may still satisfy the request. Correct only a remaining difference; no blind refill or immediate handoff.
Unsupported operationUse available capabilities; suggest updating only if the missing feature is needed.

Navigation alone (including deprecated help outcome navigated) is not completion. For other errors, follow the returned hint and inspect the current state.

Help disabled: do not request help or re-enable it. Use existing login state, authorized inputs and viable alternatives; disabling help adds no permission and does not remove borrow confirmation or host restrictions. Where authorized, a vision-capable model may attempt graphical verification. Phone-only QR scans, face verification, missing SMS codes or image-only tasks for a text-only model may remain blocked. Report a specific blocker only when inputs/capabilities are missing or viable approaches are exhausted; continue independent work. Do not loop on identical failures, repeat unknown effects or switch backends to bypass limits. On an unrecoverable failure, report the blocker and stop the owned session.

Screenshots and Canvas

sh
bsk screenshot --session <id> --out viewport.png
bsk screenshot --session <id> --ref @e3 --out element.png --json
bsk screenshot --session <id> --full-page --out page.png
bsk screenshot --session <id> --full-page --scope current --out loaded.png

Screenshots return a local PNG path; view the image to interpret it. --out replaces an existing file; omitting it uses a temporary path. --json includes dimensions and byte size. --ref and --full-page cannot be combined.

Full-page mode scrolls an ordinary webpage and restores its position/styles. The default --scope follow follows appended content. Use --scope current when capturing the currently loaded range is requested: it stops at the initial document height, even if a loading indicator remains. Later content below that boundary is excluded; report this range rather than claiming all feed entries were loaded. Use a selected, session-controlled tab and stable viewport; --tab-id targets a tab without selecting it. Internal browser pages, the Web Store, nested scrolling panels and virtualized lists are unsupported. Capture/encoding defaults to 2m; --timeout 5m extends it only in full-page mode. Allow the shell enough time for capture plus transfer. Respect cancellation; do not blindly retry endless pages or substitute a viewport image when an older extension rejects full-page capture. Use matching CLI/extension builds. Ctrl-C cancels; failed full-page captures save no partial image. A loading_stalled error means the bottom kept a loading indicator without height growth for 30s; do not simply increase the deadline. Choose current only when that range satisfies the request. Keep the capture tab visible: page_hidden is an environment interruption, while user_cancelled means user input stopped capture. For other failures follow the returned reason and hint; do not work around them by editing the page or stitching screenshots.

For @eN canvas [visual:screenshot], observe returns text, not pixels. Screenshot that ref when its contents matter; never infer Canvas controls or names from nearby labels. If images cannot be received/understood, explain the limitation, ask for an image-capable model when needed, and continue with available semantics.

To click a point seen in a Canvas image, retain that screenshot's capture_id:

sh
bsk click @e3 --capture <capture-id> --image-x <x> --image-y <y> --session <id>

Use ORIGINAL PNG coordinates and dimensions, not resized display/viewport pixels. Captures are single-use, expire after 2m, and are invalidated by ref replacement (observe/snapshot/continuation) or a newer screenshot of that ref. With capture_unavailable, the image is view-only: observe and screenshot again before clicking. Counts 1/2, buttons and modifiers work; Canvas fill, IME, drag, hover and HTML extraction do not. Repainting is allowed; changed identity/geometry/hit targets are rejected. Verify the result, using DOM refs for revealed controls; inspect effect_state=unknown before retrying with a new capture.

Files and other tools

sh
bsk upload @e3 --file ./report.pdf --session <id>
bsk download @e3 --out ./report.pdf --session <id>

Upload discloses the file to the site; download accepts site-controlled bytes. Use agent-local paths, not browser-internal staging paths.

  • Default upload clicks an upload button/label and intercepts its file chooser.
  • If reason=file_input_not_activated and effect_state=none, re-observe. Try --mode drop once only on a clear attachment target such as a drop zone or composer, never whitespace or an ambiguous container. Otherwise follow the human-help rules. There is no automatic fallback between mechanisms.
  • Never retry or switch upload modes for effect_state=unknown or committed. A successful drop proves dispatch, not site acceptance; observe the attachment.
  • Download refuses overwrite by default; add --overwrite only when replacement is intended. Consult each command's help for other flags.

Use console / network for bounded read-only diagnostics; follow returned sequence cursors. emulate --device iphone-14 affects one tab; --off restores it. evaluate is a last resort: inspect JSON .ok, since a script exception can have CLI exit code 0. Never evaluate secrets. record start captures user actions; read its help first and never record banking, SSO or password-manager pages. Use bsk --help to find navigation/history, tab, wait and window commands.

Câu hỏi thường gặp

Kỹ năng AI Browser Skill làm được gì?

Use when the user asks to automate their logged-in Chromium browser: visit and read pages, fill forms, scrape data, click through flows, regression-test a PR's UI, validate a deployed page, or operate a tab they identify. Requires the bsk CLI and browser extension.

Vì sao nên dùng Browser Skill trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Browser Skill là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Browser Skill trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Tencent/BrowserSkill/tree/main/crates/bsk-cli/skill. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Browser Skill?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Browser Skill với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Browser Skill với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Browser Skill có miễn phí không?

Có. Kỹ năng này được Tencent phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇