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

pinchtab

بواسطة luigi-agosti

Web & Frontend Development
953التنزيلات وفق ما يذكره clawskills.sh
1المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Control a headless or headed Chrome browser via Pinchtab's HTTP API.

الوصف

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

Pinchtab controls a Chrome browser via a local HTTP API, exposing the page's accessibility tree as flat JSON with stable element refs. Designed for AI agents doing web automation, scraping, form filling, and multi-tab workflows. Optimized for low token cost compared to screenshot-only or full DOM approaches.

The accessibility tree output uses 56-93% fewer tokens than full DOM or screenshot approaches, making it significantly cheaper to run browser automation inside AI agent loops.

متى تستخدمها

  • Scraping product prices from e-commerce sites
  • Automating login and form submission on internal tools
  • Extracting structured data from paginated web reports
  • Taking screenshots of web pages for visual verification
  • Running multi-tab browser workflows in CI pipelines

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

الإدخال

User asks: Go to example.com and find all the navigation links

الوكيل
  1. 1

    Start pinchtab server locally on port 9867

  2. 2

    Navigate to https://example.com via POST /navigate

  3. 3

    Wait 3 seconds for Chrome to render the accessibility tree

  4. 4

    Call GET /snapshot?filter=interactive&format=compact to get element refs

  5. 5

    Filter results for role=link elements and return their text and href values

الإخراج

A list of navigation links with their labels and URLs extracted from the accessibility tree

المتطلبات

  • pinchtab binary installed (Go binary from https://github.com/pinchtab/pinchtab/releases)
  • BRIDGE_TOKEN environment variable (optional, for remote/authenticated access)

التثبيت

clawhub install luigi-agosti/pinchtab

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

الروابط