browser-automation
Skill này làm gì
Skill cho một agent AI thấy cách dùng công cụ trình duyệt của OpenClaw cho các tác vụ có nhiều bước, như điền biểu mẫu hoặc kiểm tra đăng nhập. Nó dành cho bất kỳ ai muốn một agent làm việc trên một trang web thay mình.
Khi nào nên dùng
- ✓Khi bạn muốn agent mở một trang web và hoàn thành nhiều bước trên đó.
- ✓Khi bạn cần kiểm tra xem bạn đã đăng nhập vào một trang chưa trước khi thực hiện một hành động.
- ✓Khi tác vụ trình duyệt bị đình trệ hoặc một phần tử trên trang không còn tìm thấy.
Liên kết skill
https://github.com/openclaw/openclaw/blob/main/extensions/browser/skills/browser-automation/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Mở trang quản lý cửa hàng trực tuyến của tôi, kiểm tra xem đơn hàng hôm nay đã hiện chưa và cho tôi biết tổng số.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill kiểm tra trạng thái trình duyệt trước, theo dõi đúng tab, rồi đọc trang trước khi nhấp. Nếu một bước hết thời gian chờ hoặc phần tử bị cũ, skill làm mới góc nhìn và thử lại.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Browser Automation
Use this skill when you need the browser tool for anything beyond a single page check.
Operating Loop
- Check browser state before acting:
openclaw browser doctororaction="status"when the browser/plugin setup itself may be broken.action="status"for availability.action="profiles"if login state or profile choice matters.action="tabs"before opening a new tab if retries/timeouts may have left windows behind.
- Prefer stable tab handles:
- Open important tabs with
label, for examplelabel="meet". - After
action="tabs"oraction="open", storesuggestedTargetIdand pass it astargetIdin later calls. suggestedTargetIdis the label when one exists, otherwise the stabletabIdhandle liket1.- Avoid relying on raw DevTools
targetIdexcept for immediate diagnostics; it can change under Chromium target replacement.
- Open important tabs with
- Read before you click:
- For “read the page and answer X,” use
action="text"with optionalselectorandmaxCharsfor bounded visible prose (first selector match, otherwise article/main/body). On existing-session profiles, usesnapshotinstead. Efficient snapshots omit most prose. - For virtualized lists, scroll through each segment, capture only the relevant rows, then merge the results.
- Use
action="snapshot"on the intendedtargetId. - Add snapshot
queryto find lines containing all query tokens, ignoring case; matching lines keep their refs. - Use the same
targetIdfor follow-up actions so refs stay on the same tab. - For durable Playwright refs, request
refs="aria"when supported. If you receiveaxNrefs fromsnapshotFormat="aria", use them only after that same snapshot call; stale or unboundaxNrefs fail fast and need a fresh snapshot. - Use
urls=truewhen link text is ambiguous or a direct navigation target would avoid brittle clicks. - Use
labels=trueon snapshot or screenshot when visual position matters. On Playwright-backed profiles, the response includes anannotationsarray ({ref, number, role, name?, box}) with each ref's bounding box in the captured image's coordinate space, so you can reason about position without re-snapshotting; screenshot labels can also combine withfullPage=true(CLI:--full-page) to label the whole document, orref/elementto clip to one element.profile="user"and other existing-session (chrome-mcp) profiles render an overlay into page screenshots but do not attachannotationsor use the Playwright full-page/ref/element projection helper, so read positions from the labeled image itself on those profiles. The raw-CDP fallback (no Playwright) does not support labeled screenshots at all and returns a 501, so only requestlabelswhen Playwright is available.
- For “read the page and answer X,” use
- Act narrowly:
- Prefer
action="act"with a ref from the latest snapshot. navigatereturns the loaded page's compact snapshot inline, and batchactresults that report a cross-document navigation include fresh page state; use those refs directly instead of a follow-up snapshot call.- After a single act that triggers navigation, and after modal changes or form submissions, snapshot again before the next action.
- Avoid blind waits. Wait for visible UI state when possible.
- Use
action="emulate"withdevice,colorScheme,timezoneId, orlocalewhen testing those settings; snapshot again afterward. Existing-session profiles do not support emulation.
- Prefer
- Report real blockers:
- Debug network failures with
action="requests", optional URL/typefilter, andlimit(default 50 recent entries).clear=trueclears the collected log after reading. Use a managed profile; existing-session profiles do not support this log. - Debug page errors with
action="errors"andlimit(default 50 recent entries).clear=trueclears the collected log after reading. Existing-session profiles do not support this log. - If the page needs login, permission, captcha, 2FA, camera/microphone approval, or another manual step, stop and tell the user exactly what is needed.
- Do not claim the browser is not logged in just because the current page shows a permission or onboarding dialog. Inspect the visible UI first.
- Debug network failures with
Browser batch CLI
openclaw browser batch runs an array of nested /act actions in one /act call (the same kind="batch" runtime reached through the agent tool), so CLI users and scripts can combine actions lik
Câu hỏi thường gặp
Skill có giữ đăng nhập của tôi không?
Skill có thể kiểm tra trạng thái đăng nhập và chọn một hồ sơ trình duyệt, nên các trang bạn đã đăng nhập có thể vẫn giữ đăng nhập.
Điều gì xảy ra nếu một tab vẫn mở sau lỗi?
Skill liệt kê các tab đang mở trước, để có thể dùng lại đúng tab thay vì mở thêm.
Skill có đọc được các trang dài không?
Có. Skill có thể đọc một lượng văn bản có giới hạn từ trang và xử lý các danh sách dài theo từng phần.
Chi tiết
Mô tả gốc của tác giả
Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.
repo: openclaw/openclaw
Độ phổ biến
- Sao GitHub
- 394k
- Vị trí xếp hạng
- #14
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
discord-user-post
394kCho phép agent của bạn đăng tin nhắn đã duyệt lên Discord dưới tên bạn qua app Discord trên máy tính, sau khi xác nhận đúng kênh.
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
graincrawl
394kCho phép agent của bạn tìm trong ghi chú cuộc họp và bản chép lời Granola đã lưu, kiểm tra độ mới và đếm số cuộc họp trong một khoảng thời gian.
Skill tương tự
using-superpowers
311kGiúp agent của bạn tìm và dùng đúng skill trước khi bắt đầu một việc, để nó làm theo các bước đã được kiểm chứng cho loại công việc đó.
ask-matt
310kCho phép agent của bạn đóng vai người hướng dẫn một bộ skill lập trình, chỉ bạn đến đúng skill cho tình huống của mình, từ ý tưởng đến mã đã phát hành.
retro
310kNhìn lại một phiên lập trình và đề xuất thay đổi thiết lập, như điều hướng rõ hơn hoặc kiểm tra tự động, để các lần chạy agent sau suôn sẻ hơn.