browser-automation
ما الذي تفعله
توضح هذه المهارة كيف يستخدم وكيل الذكاء الاصطناعي أداة المتصفح في OpenClaw لمهام تتطلب عدة خطوات، مثل ملء النماذج أو التحقق من تسجيل الدخول. وهي لمن يريد أن يعمل وكيله على موقع إلكتروني نيابة عنه.
متى تستخدمها
- ✓عندما تريد أن يفتح وكيلك موقعاً إلكترونياً وينفذ عدة خطوات فيه.
- ✓عندما تحتاج إلى التحقق من أنك مسجّل الدخول إلى موقع قبل تنفيذ إجراء.
- ✓عندما تتوقف مهمة المتصفح أو لا يعود عنصر في الصفحة قابلاً للعثور عليه.
رابط المهارة
https://github.com/openclaw/openclaw/blob/main/extensions/browser/skills/browser-automation/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“افتح لوحة متجري الإلكتروني، وتحقق من ظهور طلبات اليوم، وأخبرني بالمجموع.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تتحقق المهارة من حالة المتصفح أولاً، وتتابع التبويب الصحيح، وتقرأ الصفحة قبل النقر. وإذا انتهت مهلة خطوة أو أصبح عنصر قديماً، تحدّث رؤية الوكيل للصفحة وتعيد المحاولة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
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
الأسئلة الشائعة
هل تحتفظ بتسجيلات دخولي؟
تستطيع التحقق من حالة تسجيل الدخول واختيار ملف تعريف للمتصفح، لذلك قد تبقى المواقع التي سجّلت الدخول إليها مفتوحة.
ماذا لو بقي تبويب مفتوحاً بعد خطأ؟
تعرض المهارة التبويبات المفتوحة أولاً، فيمكنها إعادة استخدام التبويب الصحيح بدلاً من فتح تبويبات جديدة.
هل تستطيع قراءة الصفحات الطويلة؟
نعم. تستطيع قراءة قدر محدد من النص في الصفحة، وتعالج القوائم الطويلة على أجزاء.
التفاصيل
الوصف الأصلي من المؤلف
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
الشعبية
- نجوم GitHub
- 394k
- الترتيب
- #14
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
discord-user-post
394kتتيح لوكيلك نشر رسالة وافقت عليها في Discord باسمك عبر تطبيق Discord على سطح المكتب، بعد التأكد من القناة المحددة.
discrawl
394kيتيح لوكيلك البحث في أرشيف محلي محفوظ لرسائل Discord وتلخيصه، والتحقق من مدى حداثته، وقراءة الرسائل المباشرة.
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
graincrawl
394kيتيح لوكيلك البحث في ملاحظات اجتماعات Granola المحفوظة ونصوصها، والتحقق من حداثتها، وعدّها خلال فترة محددة.
مهارات مشابهة
using-superpowers
311kيساعد وكيلك على إيجاد المهارات المناسبة واستخدامها قبل بدء أي مهمة، حتى يتبع الخطوات المثبتة لذلك النوع من العمل.
ask-matt
310kيتيح لوكيلك أن يعمل كدليل لمجموعة من مهارات البرمجة، فيوجهك إلى المناسبة لوضعك، من الفكرة حتى الشيفرة المنشورة.
retro
310kيراجع جلسة برمجة مضت ويقترح تغييرات في إعداد المشروع، مثل تنظيم أوضح للتنقل أو فحوص تلقائية، لتسير الجلسات المقبلة بسلاسة أكبر.