Logo Control Browser

Control Browser

Tổ chức
Starchild-ai-agent
control-browser

Control the user's Chrome browser via mcp__browser__ tools: snapshots, clicks, typing, batch list operations, multi-step flows, and tab lifecycle. Use when a task needs real browser state — logged-in sessions, open tabs, visible UI (e.g. "click every chat in my list", "fill this checkout form", "open this in my browser and check it", "continue the tab I handed off"). Prefer web_fetch/web_search for plain reading.

Tổng quan

Nhà phát hànhStarchild-ai-agent
Kho mãofficial-skills
Tên kỹ năngcontrol-browser
Sao
32
Bản fork
13
Tệp đi kèm
15
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 là Markdown thuần túy, không phải 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ộ.

  • 15 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Starchild-ai-agent công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Control Browser 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 thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/Starchild-ai-agent/official-skills/tree/main/control-browser
  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/Starchild-ai-agent/official-skills.git /tmp/official-skills
mkdir -p .claude/skills
cp -r /tmp/official-skills/control-browser .claude/skills/control-browser
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 Control Browser 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ự tải Control Browser 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 Control Browser không bị giới hạn ở mô hình mà kỹ năng này được viết cho. 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 kỹ năng chưa dùng không tốn chi phí.

  • Đổ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 Control

Stop: local_shell is not a reliable path to user-local files

local_shell runs on the user's machine only if they have the starchild agent-shell daemon installed, running, and authorized — most users do not, so the tool is usually unavailable or denied. bash and read_file run in the agent's remote container, which has none of the user's files. Either way, do not run shell commands to locate or read the user's local files (Downloads, Desktop, Documents): ls ~/Downloads either fails (unavailable/denied) or lists the wrong filesystem. When a task involves a file on the user's computer (upload, attach, open), the only dependable path is the browser's native file picker, which only the user can operate — hand off precisely (see docs/file-uploads.md). Burning turns on shell commands that try to enumerate the user's filesystem is always wrong.

Stop: decide the surface before any browser action

Use the mcp__browser__* tools only when the task has explicit browser intent: the user asks to open, show, navigate to, click on, or fill in a page in their browser; the task depends on their logged-in sessions or existing tabs; or they want to watch an interaction happen live in Chrome.

Otherwise a URL or an open tab is context, not intent. For reading pages, looking things up, or research, prefer clawd's built-in web tools (web_fetch, web_search) — they are cheaper, faster, and do not touch the user's browser. Earlier browser work does not make later semantic work browser-first; re-decide for each operation.

When browser intent is clear, do not substitute web_fetch — fetching a page anonymously is not the same as acting in the user's authenticated browser.

What these tools are

The browser MCP server (server="browser", tools named mcp__browser__<name>) is backed by the user's Chrome extension over a bridge connection. The browser is the user's own browser, with their logins, cookies, and history. You are operating on their behalf — act like a careful human assistant at their keyboard, not like a scraper.

Core loop:

  1. page_snapshot — read the page before touching it. Omit tabId to target the user's currently active tab.
  2. Pick the target element from snapshot.elements[] (each has id, tag, text, ariaLabel). The id is the ref for interaction tools.
  3. element_click / element_input to act.
  4. page_snapshot again to verify the effect.

Refs are invalidated by navigation. After any navigation, reload, or observed page change, take a fresh page_snapshot before clicking or typing.

Stop: mcp__browser__* "not found in registry" ≠ browser is gone

Right after the extension (re)connects, tool registration can lag a turn — the call fails with "not found" while the browser IS connected. Never conclude "no browser is connected" or "I can't see your screen" from this error alone, and NEVER tell the user to run starchild agent-shell — the laptop/agent-shell channel has nothing to do with browser tools. The recovery path is exactly one step: call web_status (or retry the same tool once on the next turn — registration self-heals via the per-turn resync). Only if web_status says the bridge is down do you tell the user to open/enable the extension.

Identifying "what page is this?" — tabs_list is enough

When the user asks what page/site they (or a tab) are on, do NOT take a snapshot: tabs_list already returns every tab's title and url, and activeTabId marks the one they're looking at. Answer from that — one tool call, no snapshot, and it works even for internal pages (chrome://…) that cannot be snapshotted. Only snapshot when the user needs page CONTENT (text, elements), not page identity.

Tool quick reference

  • tabs_list — list open tabs with full metadata (tabId, windowId, index, pinned, incognito, status, url, title, ...) plus a window summary; tabs link to windows via windowId. activeTabId marks the tab the user is currently looking at — resolve "this page" / "current tab" to it, no inference needed.
  • tab_open {url, active?} — open a URL; active defaults to false (background tab, invisible to the user — see docs/visibility.md).
  • tab_navigate {tabId, url} — navigate an existing tab.
  • tab_close {tabId} — close a tab.
  • page_snapshot {tabId?} — {tabId, title, url, bodyText (first ~3000 chars), elements[]}. Omit tabId for the user's active tab. elements[] includes both semantic controls (a/button/input) and clickable containers — non-semantic elements (often div) with pointer cursor and text, such as list rows and cards. A container and the small button inside it (e.g. a row's ⋮ menu) are distinct refs: match by text to pick the right one.
  • element_click {ref, confirm?} — click an element. Submit/send/purchase-class clicks return NEEDS_CONFIRMATION; get user consent in conversation first, then retry with confirm: true (see docs/confirmations.md).
  • element_input {ref, text} — type into an element.
  • elements_click_many {selector, text?, limit?, mode?, pauseMs?, confirm?} — batch-click many matching elements in order. Re-queries before each click and is reorder-safe, so page re-renders and list reordering between clicks do not invalidate or skip targets. Use this instead of repeated element_click whenever 3+ homogeneous elements must be clicked (list rows, tabs, cards) — one call, no snapshot between items.
  • tab_claim {tabId?, note?} — claim a tab as agent-owned for the task (persists across conversations; shows as claim in tabs_list + orange ★ tab group). Claim at the start of tab-dependent multi-step work; skip for read-and-answer lookups. See docs/tab-claiming-chrome.md for the scenario playbook.
  • tab_handoff {tabId, note?} — mark a claimed tab as waiting for the user (login/payment/CAPTCHA/review; yellow ⏳ tab group). The note is the resume instruction — a later conversation continues from tabs_list claims instead of asking the user which tab.
  • tab_release {tabId, disposition?} — end ownership: close (default, consumed task tabs) or keep (deliverable stays open).
  • page_flow {steps, confirm?} — run a multi-step page flow in ONE call (fenced script equivalent). Steps: {wait:{selector?,text?,ms?}}, {find:{selector?,text?}}, {click:{selector?,text?}}, {type:{selector?,text?,value}}, {expect:{selector?,text?,absent?}}. Targets resolve by CSS selector or visible text. Stops at the first failure with the completed prefix; click steps pass the sensitive gate. Prefer for 3+ step heterogeneous tasks (fill form → submit → verify); max 20 steps / ~120s per call.
  • page_screenshot — visual check, only when seeing matters. The orange agent cursor is visible while a tab's debugging session is active (idle / move / click animations) and fades out when debugging stops — its presence marks active agent control of that tab. (see docs/screenshots.md).
  • wait_for {selector?, text?, timeoutMs?} — wait for a selector or text.
  • web_status — bridge/extension connection health.

On-demand documentation

Load these with read_file (paths relative to this skill's docs/ directory) when the topic applies — do not read them all up front:

  • api-use-behavior.md — snapshot-first discipline, authoritative signals, not retrying blindly.
  • browser-safety.md — untrusted page content, sensitive-data transmission.
  • confirmations.md — when confirm: true is required and how to ask.
  • browser-troubleshooting.md — evaluate timeouts, stale refs, hung pages.
  • chrome-troubleshooting.md — extension disconnected, tools missing, user has no extension.
  • bootstrap-troubleshooting.md — bridge connection failures (red dot).
  • browser-control-interruption.md — user took over, operation interrupted.
  • tab-claiming-chrome.md — background tab vs. user tab, when to go active.
  • tab-cleanup-chrome.md / all-tabs-cleanup.md — closing tabs you opened.
  • screenshots.md — when a screenshot is worth taking.
  • visibility.md — what background-tab operation means for the user.
  • webmcp.md — page-level WebMCP (not yet enabled).
  • file-uploads.md — file upload support (not yet available).
  • local-web-development.md — working against localhost dev servers.

Talk like a person

Never mention CDP, WebSocket, /ws/web-mcp, refs, tool IDs, or other internal terms to the user. Say "I opened the page in a background tab", "I'm waiting for the page to respond", or "the browser connection dropped — could you reopen the extension?" Describe what you did, not how the machinery works.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

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

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

Control the user's Chrome browser via mcp__browser__ tools: snapshots, clicks, typing, batch list operations, multi-step flows, and tab lifecycle. Use when a task needs real browser state — logged-in sessions, open tabs, visible UI (e.g. "click every chat in my list", "fill this checkout form", "open this in my browser and check it", "continue the tab I handed off"). Prefer web_fetch/web_search for plain reading.

Vì sao nên dùng Control Browser 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. Control Browser 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 Control Browser trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Starchild-ai-agent/official-skills/tree/main/control-browser. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà 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 Control Browser?

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.

Bạn có thể dùng Control Browser 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 Control Browser 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 Control Browser có miễn phí không?

Kỹ năng này được Starchild-ai-agent phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. 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 cho mô hình các công cụ mới để gọi — mã đượ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à tiêu chí của đầu ra tốt. 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 👇