pinchtab-mcp
What it does
This skill lets an AI drive a browser through the PinchTab MCP server. It is for people who want their AI to open pages, fill forms and collect page content.
When to use it
- ✓When you want an AI to open a website and act on it through MCP tools.
- ✓When you need to fill out a multi-step form in a remote browser.
- ✓When you want page text or data pulled out in a repeatable flow.
Skill link
https://github.com/pinchtab/pinchtab/blob/main/plugins/grok/skills/pinchtab-mcp/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Open the supplier portal, fill in the order form with my details and read back the confirmation text.”
5 new skills a week. 1 minute to read.
How it works
The AI opens a page, takes a compact snapshot with numbered element references, then clicks or types using those references and checks the result. It takes a fresh snapshot after each page load because references expire.
Technical content (original SKILL.md)
Original text by the author, straight from 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
- Navigate:
pinchtab_navigate(url="https://example.com")— auto-creates a session and tab. - Observe:
pinchtab_snapshot(interactive=true, compact=true)— returns numbered refs likee5,e12. - Interact:
pinchtab_click(selector="e5")— use refs from the snapshot. - 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://orhttps://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=truefirst 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=truefor an HTTP-only crawl;enrichAll=trueto 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
eNis the ref to pass to action tools. - Refs are the fastest way to target elements.
- Use
diff=trueafter an interaction to see only changed elements (saves tokens). - Use
selectorto 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
FAQ
Why does the AI take a new snapshot after each page load?
Element references expire when a new page loads, so they must be read again.
Can it use a remote browser?
Yes. A server address can be set so the tools use a remote or containerized PinchTab instance.
How does it check that an action worked?
After each action it reads the page text or takes a new snapshot to confirm the result.
Details
Original description by the author
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
Popularity
- GitHub stars
- 11k
- Ranking position
- #11874
- License
- MIT
- Updated
- 10/27/2026
Comments
- …
More skills from this repository
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.