Logo Browser Agent

Browser Agent

Tổ chức
OyadotAI
browser-agent

Control a real browser via Oya Browser MCP tools. Use this skill when the user asks you to browse the web, interact with websites, fill forms, scrape data, or automate browser tasks. Provides the mental model and strategies for effective browser automation through structured markdown and numbered element IDs.

Tổng quan

Nhà phát hànhOyadotAI
Kho mãoya-browser
Tên kỹ năngbrowser-agent
Sao
351
Bản fork
281
Tệp đi kèm
Chỉ có hướng dẫn
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 OyadotAI 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 Agent 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/OyadotAI/oya-browser/tree/main/.agents/skills/browser-agent
  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/OyadotAI/oya-browser.git /tmp/oya-browser
mkdir -p .claude/skills
cp -r /tmp/oya-browser/.agents/skills/browser-agent .claude/skills/browser-agent
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 Agent 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 Agent 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 Agent 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.

You have access to a real Chrome browser through Oya Browser MCP tools. The browser has real cookies, logins, extensions, sites see a real user, not a bot. You control it through structured commands, not raw HTML or CSS selectors.

Core Mental Model

The browser gives you pages as structured markdown with numbered interactive elements. You act by referencing element numbers:

[#9 input:text placeholder="Search"]   →   type(9, "query")
[#13 button "Google Search"]           →   click(13)
[#4 link "Images" → /images]          →   click(4)

You never write CSS selectors, XPath, or pixel coordinates (unless using coordinate tools for precise clicks). You analyze the page, read the markdown, and act by element ID.

Workflow

Every browser task follows this loop:

  1. Navigate: go to the URL
  2. Analyze: call analyze_page to see the page as markdown with numbered elements
  3. Act: click, type, scroll, press keys using element IDs
  4. Re-analyze: after actions that change the page (clicks, form submissions, scrolls), analyze again to see the new state
  5. Repeat until the task is done

CRITICAL: Always call analyze_page after navigation or significant interactions. Element IDs change between analyses. Never assume an old ID is still valid.

Available Tools

Page Understanding

  • analyze_page(): Returns full page as markdown with [#id type "label"] annotations. Always start here.
  • screenshot(): Capture visible viewport as PNG. Use when you need to verify visual state or when markdown isn't enough.
  • read_elements(selector?, limit?): Lighter than analyze_page, returns element metadata without full markdown.

Navigation

  • navigate(url): Go to a URL. Wait for page load automatically.
  • scroll(direction, amount?): Scroll "up" or "down" by N pixels (default 500). Returns updated page analysis.
  • wait(selector, timeout?): Wait for a CSS selector to appear (max 10s default).

Element Interaction

  • click(element_id): Click an element by its ID from analyze_page. Scrolls element into view automatically.
  • type(element_id, text): Clear field and type text into an input/textarea/contenteditable.
  • press_key(key): Press Enter, Escape, Tab, ArrowDown, ArrowUp, Backspace, or any key.

Mouse & Keyboard (Low-Level)

  • click_coordinates(x, y): Click at exact pixel position. Use with screenshot when element IDs don't work.
  • mouse_move(x, y): Hover without clicking. Triggers tooltips, dropdown menus, hover states.
  • double_click(element_id?, x?, y?): Double-click by element ID or coordinates. For text selection, file opening.
  • keyboard_type(text): Type into whatever is currently focused. No element targeting.
  • drag(from_x, from_y, to_x, to_y): Drag between two points. For sliders, drag-and-drop, range selection.

Tab Management

  • list_tabs(): Show all open tabs with IDs.
  • open_tab(url?): Open new tab, optionally navigating to URL.
  • switch_tab(tab_id): Switch to a tab by ID.
  • close_tab(tab_id?): Close a tab (default: active tab).

Pool (Multi-Browser)

  • pool_status(): Show connected browsers in the pool.

Strategy Guide

Reading analyze_page Output

The output has two parts:

1. Header: metadata about the page:

---
url: https://example.com
title: Example
viewport: 1280x720
scroll: 0% (0px / 3200px)
elements: 47 total, 23 visible
---

2. Body: full page as markdown with inline element annotations:

# Welcome to Example

[#1 link "Home" → /] [#2 link "About" → /about] [#3 link "Login" → /login]

## Search
[#9 input:text placeholder="Search..."]
[#10 button "Search"]

## Results
- [#11 link "First result" → /result/1]
- [#12 link "Second result" → /result/2]

3. Element Index: grouped by visibility:

### Visible
  [#9] input: Search...
  [#10] button: Search
### Off-screen (scroll to reveal)
  [#35] link: Footer link

Handling Common Patterns

Forms: Find the input elements, type into each, then click submit:

analyze_page → find [#5 input:email], [#6 input:password], [#7 button "Sign in"]
type(5, "user@example.com")
type(6, "password123")
click(7)

Dropdowns/Selects: Click to open, then click the option:

click(dropdown_id)
analyze_page → find the option elements that appeared
click(option_id)

Infinite scroll: Scroll down, re-analyze to see new content:

scroll("down", 800)
→ returns updated analysis with new elements

Modals/Dialogs: When a modal is open, analyze_page automatically scopes to the modal content. The header will say modal: "dialog name".

Pagination: Look for "Next", "More", or page number links in the element index.

Site-Specific Tips

LinkedIn:

  • Feed posts use data-urn attributes; the analyzer detects these
  • Messaging opens with aria-hidden on main content; the analyzer handles this
  • Use the search bar input, type query, press Enter
  • Connection buttons: look for "Connect" or "Follow" button elements

X (Twitter):

  • Tweet compose: click the "Post" or compose area, then type
  • Interactions: like/retweet/reply buttons detected via data-testid
  • Thread navigation: click "Show replies" or individual tweets

Reddit:

  • Uses web components (<shreddit-post>); the analyzer traverses shadow DOM
  • Vote buttons and comment links are properly detected
  • Subreddit navigation: use the search or navigate directly

HackerNews:

  • Layout tables are handled as containers (not data tables)
  • Vote arrows show as [#N button "upvote"]
  • Comment reply links show as [#N link "reply to username"]
  • Comment links show context: [#N link "189 comments" on "Post Title"]

Amazon:

  • Product cards detected via data-asin and data-cel-widget
  • Search: type in the search box, press Enter
  • Add to cart: find the "Add to Cart" button element

When Element IDs Don't Work

Sometimes elements aren't detected or clickable by ID. Fallback strategy:

  1. Take a screenshot → visually identify the target
  2. Use click_coordinates(x, y) → click at the pixel position you see in the screenshot
  3. Use mouse_move(x, y) → hover first to reveal hidden elements (dropdowns, tooltips)
  4. Use keyboard_type(text) → type into whatever is focused without targeting

Error Recovery

  • "Element not found" → IDs are stale. Call analyze_page again.
  • Click didn't work → The element may need scrolling first, or try click_coordinates with screenshot.
  • Page didn't load → Check URL, try navigate again, or wait for a specific selector.
  • Modal blocking → analyze_page will scope to the modal. Dismiss it with Escape or clicking X.
  • Content truncated → Very long page. Scroll down and re-analyze to see more content.

Important Rules

  1. Always analyze before acting. Never guess element IDs.
  2. Re-analyze after major actions. Element IDs change after page changes.
  3. Scroll to find elements. If an element is in the "Off-screen" index, scroll first.
  4. Read the element index. It tells you exactly what's visible and what's not.
  5. Use screenshot as backup. When markdown isn't enough, see the page visually.
  6. Don't over-analyze. If you already see the element you need, act immediately.
  7. Be efficient. Navigate directly to URLs when possible instead of clicking through menus.

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

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

Control a real browser via Oya Browser MCP tools. Use this skill when the user asks you to browse the web, interact with websites, fill forms, scrape data, or automate browser tasks. Provides the mental model and strategies for effective browser automation through structured markdown and numbered element IDs.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/OyadotAI/oya-browser/tree/main/.agents/skills/browser-agent. 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 Agent?

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 Agent 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 Agent 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 Agent có miễn phí không?

Kỹ năng này được OyadotAI 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 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 👇