Перейти к содержимому
TakoAPI
Назад к навыкам

pinchtab

от luigi-agosti

Web & Frontend Development
953Число загрузок по данным clawskills.sh
1Просмотры
0 лайковВойдите, чтобы поставить лайк навыку
—Ещё нет оценок
Ваша оценка

Кратко

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

Выполните команду CLI или вставьте промпт в Claude Code, Cursor, Codex — любой кодинг-агент, которым пользуетесь.

Ссылки