تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

mac-use

بواسطة kekejun

Browser & Automation
2.1kالتنزيلات وفق ما يذكره clawskills.sh
3النجوم
1المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Control macOS GUI apps visually — take screenshots, click, scroll, type.

الوصف

ما الذي تفعله هذه المهارة

Controls macOS GUI applications through a screenshot-then-interact loop. Takes annotated screenshots using Apple Vision OCR to detect and number text elements, then clicks, types, scrolls, or presses keys based on what's visible on screen. Works with any app that has a graphical interface.

Unlike AppleScript or accessibility APIs, this works on any app regardless of whether it exposes automation hooks, since it operates purely on what's visible on screen.

متى تستخدمها

  • Automating repetitive clicks in desktop apps without scripting APIs
  • Filling out forms in apps that lack command-line access
  • Navigating WeChat mini-programs or other sandboxed GUI environments
  • Scraping data visible on screen from apps with no export option
  • Testing desktop app UI flows end-to-end

مثال على سير العمل

الإدخال

User asks: open Safari, go to example.com, and click the first link

الوكيل
  1. 1

    Run open -a Safari and wait 2 seconds

  2. 2

    Run screenshot command on Safari, read annotated image at /tmp/mac_use.png and element list JSON

  3. 3

    Identify address bar element number from OCR output, click it with clicknum

  4. 4

    Type the URL and press return key, wait for page to load

  5. 5

    Screenshot again, identify first link by element number, click it with clicknum

الإخراج

Safari navigates to example.com and opens the first link on the page

التثبيت

clawhub install kekejun/mac-use

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط