本文へスキップ
Skillpedia
コネクタ(MCP)11k · #11874

pinchtab-mcp

できること

このスキルは、PinchTab MCPサーバーを通じて、AIにブラウザを操作させます。AIにページを開かせ、フォームに入力させ、ページの内容を集めたい人向けです。

使う場面

  • ✓MCPツールを通じて、AIにウェブサイトを開かせ、そこで操作させたいとき。
  • ✓リモートブラウザで複数段階のフォームに入力する必要があるとき。
  • ✓ページの本文やデータを、繰り返し行える手順で取り出したいとき。

スキルのリンク

https://github.com/pinchtab/pinchtab/blob/main/plugins/grok/skills/pinchtab-mcp/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/pinchtab/pinchtab/blob/main/plugins/grok/skills/pinchtab-mcp/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“仕入先のポータルを開き、注文フォームに私の情報を入力して、確認メッセージの本文を読み上げてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

AIはページを開き、番号付きの要素参照を含むコンパクトなスナップショットを取得します。その参照を使ってクリックや入力を行い、結果を確認します。参照は期限切れになるため、ページが読み込まれるたびに新しいスナップショットを取得します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Browser Automation via PinchTab MCP

Use MCP tools to control a browser through the PinchTab HTTP API. The MCP server defaults to http://127.0.0.1:9867; for remote or containerized PinchTab instances, override with the PINCHTAB_SERVER env var (e.g. PINCHTAB_SERVER=http://pinchtab:9867).

Core Workflow

  1. Navigate: pinchtab_navigate(url="https://example.com") — auto-creates a session and tab.
  2. Observe: pinchtab_snapshot(interactive=true, compact=true) — returns numbered refs like e5, e12.
  3. Interact: pinchtab_click(selector="e5") — use refs from the snapshot.
  4. Verify: pinchtab_get_text() or re-snapshot to confirm the action succeeded.

Critical rule: An element ref (e5, e12) denotes a DOM node, so the same node keeps its ref across interactive vs full, a selector scope and a depth limit — a filtered view is therefore sparse (e0, e1, e6), never assume refs are contiguous. What a ref does NOT survive is navigation to a new document: refs expire on page load, so always re-call pinchtab_snapshot afterwards. A ref that can no longer resolve to its node is refused with vocab_superseded (or ref not found), never acted on positionally — the tools carry each snapshot's vocabulary token forward so a filter-only re-read keeps a ref valid while a new document supersedes it.


Tool Selection Guide

Choose the cheapest tool that satisfies your goal:

Goal Tool Token Cost
Check a specific value pinchtab_eval(expression="document.title") Lowest
Find a specific element pinchtab_find(query="login button") Low
Read page text only pinchtab_get_text() Low
Read a whole site to markdown pinchtab_scrape(url=..., preview=true) then expand Varies
Find interactive elements pinchtab_snapshot(interactive=true, compact=true) Medium
Full page structure pinchtab_snapshot() Medium-High
Visual verification pinchtab_screenshot() Highest

Default observation: pinchtab_snapshot(interactive=true, compact=true) — returns only interactive elements in compact format. Use this as your starting point.


Navigation

pinchtab_navigate(url="https://example.com")
  • Always include http:// or https:// scheme.
  • Returns the tab ID and a basic confirmation.
  • Follow with pinchtab_snapshot() to get element refs.
  • For read-heavy tasks, consider blocking images (set via config on the server).

After navigation: Always call pinchtab_snapshot() before interacting. The page may have redirects, modals, or cookie banners.


Site scrape

To read a whole site (not one page) into markdown, use pinchtab_scrape — it crawls over HTTP first and browser-renders only the pages that need it (thin, blocked, or JS-only).

pinchtab_scrape(url="https://example.com", preview=true)
  • Large sites: call with preview=true first for a token-cheap outline (per-page titles, sizes, snippets, and which pages need the browser — no full bodies). Full reports can be large; don't scrape everything blind.
  • Drill down: expand the pages you picked from the preview with only (comma-separated URLs): pinchtab_scrape(url="https://example.com", only="https://example.com/a, https://example.com/b").
  • noBrowser=true for an HTTP-only crawl; enrichAll=true to browser-render every page. Multi-page crawls run for minutes.

Observation

Snapshot (primary)

pinchtab_snapshot(interactive=true, compact=true)

Returns an accessibility tree, one element per line as ref:role "name":

e0:link "About"
e2:button "Sign in"
e5:textbox "Search"

Key rules:

  • Each line's leading eN is the ref to pass to action tools.
  • Refs are the fastest way to target elements.
  • Use diff=true after an interaction to see only changed elements (saves tokens).
  • Use selector to scope the snapshot to a specific section.

Text extraction

pinchtab_get_text()

Use when you only need to read content (articles, dashboards, results). Cheaper than snapshot when you won't interact with elements.

Find elements

pinchtab_find(query="submit button")

Semantic search for elements without a full snapshot. Returns matching refs. Great for known targets.

Screenshots

pinchtab_screenshot()

Returns an MCP image (image/jpeg by default) — clients render it inline. The text block is always the JSON envelope `{"format": "jpeg"|"png", "anno

よくある質問

なぜAIはページを読み込むたびに新しいスナップショットを取得するのですか?

新しいページが読み込まれると要素の参照が期限切れになるため、読み直す必要があるからです。

リモートブラウザを使えますか?

はい。サーバーのアドレスを設定すると、リモートまたはコンテナ内のPinchTabインスタンスをツールが使えるようになります。

操作が成功したかどうか、どう確認しますか?

各操作の後に、ページの本文を読むか、新しいスナップショットを取得して結果を確認します。

詳細

作者による元の説明

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

repo: pinchtab/pinchtab

人気

GitHubのスター
11k
ランキング
#11874
ライセンス
MIT
更新日
2026/10/27

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル