tappi
bởi shaihazher
Web & Frontend DevelopmentTóm tắt
Lightweight CDP browser control for AI agents.
Mô tả
Kỹ năng này làm gì
CLI tool that controls Chrome via the Chrome DevTools Protocol, returning compact indexed lists of interactive page elements. Returns 50-200 tokens per interaction compared to thousands for accessibility tree-based approaches. Supports shadow DOM, file uploads, canvas apps, cross-origin iframes, and raw keyboard input.
Returns a compact numbered element index instead of a full accessibility tree, cutting token usage by 3-10x over multi-step browser flows compared to built-in browser tools.
Khi nào nên dùng
- Filling and submitting web forms on a target site
- Uploading files to Instagram or Twitter without an OS file picker
- Entering and formatting data in Google Sheets via keyboard navigation
- Clicking through cross-origin iframe widgets like captcha checkboxes
- Extracting visible text from React and Vue SPAs that use shadow DOM
Quy trình ví dụ
User asks: Fill out the contact form at example.com and submit it
- 1
Opens the page with
bjs open https://example.com/contact - 2
Lists interactive elements with
bjs elementsto get an indexed list of inputs and buttons - 3
Types into each field using
bjs type <index> <value> - 4
Verifies field content with
bjs check <index>before submitting - 5
Clicks the submit button with
bjs click <index>
Form submitted; agent confirms by reading updated page text or taking a screenshot
Yêu cầu
- Chrome or Chromium browser running with --remote-debugging-port=18800
Cài đặt
clawhub install shaihazher/tappiChạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.