About Pinchtab
Pinchtab is an MCP server published by pinchtab in the Scraping category: high-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard. Conduid read 48 tools from its source: PinchTab, pinchtab_a11y_audit, pinchtab_back, pinchtab_capture, pinchtab_click, pinchtab_close_tab and 42 more. No package is published for it, so it installs from a source checkout.
The repository has 11K stars and 788 forks, is licensed MIT, and its last commit was on 24 Nov 2026. The latest release is v0.15.2 (26 Aug 2026): Changelog bf7627b2ffda9d597fde27eebc7e66122990e4b7 Merge pull request #627 from pinchtab/dependabot/npm_and_yarn/npm/js-yaml-4.3.1 d81a2a8b0ef9cd060b4cfdd5b315488f18306a… It follows v0.15.1 (3 Aug 2026), and the 5 most recent releases go back to v0.14.0 (28 Jun 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include scraping.
Install
git clone https://github.com/pinchtab/pinchtabTools (48)
PinchTabBrowser control for AI agents via PinchTab.pinchtab_a11y_auditAudit the current page for accessibility issues. Default 'native' engine scores the accessibility snapshot. engine='axe' runs vendored axe-core in the page's isolated world and returns industry rule ids (image-alt, label, color-contrast, …) with WCAG tags, help URLs, a comparable score, and a snapshot 'ref' for each failing element so you can act on it with pinchtab_click/fill.| Parameter | Type | Description |
|---|---|---|
| engine | string | Audit engine: 'native' (default) or 'axe'. Any other value is a 400. |
| includeIncomplete | boolean | axe: include rules axe could not decide (the incomplete set) |
| rules | string | axe: comma allowlist of rule ids to run; wins over tags. |
| tags | string | axe: comma list of WCAG tags to run, e.g. 'wcag2a,wcag2aa,best-practice'. best-practice runs only when named. |
pinchtab_backGo back one entry in the tab's session history. Returns the tab ID and the URL the tab landed on, so a redirect or bfcache restore is visible without a snapshot.pinchtab_capturePaired screenshot + accessibility snapshot from the same DOM epoch. Returns an image content block plus a JSON envelope `{url, title, epoch:{frameId,loaderId,domEpoch}, pairing:{navigated,captureDurationMs}, image:{format,bytes,coordinateSpace,devicePixelRatio,viewport,clip}, snapshot:{filter,nodeCount,nodes}}`. Each node in `snapshot.nodes` may carry a `boundingBox:{x,y,w,h}` and `visible:bool` so a vision-capable model can overlay refs on pixels. Coordinate space is 'viewport' by default, 'document' when beyondViewport=true, and 'clip' when selector is set. Prefer this over a separate snapshot+screenshot pair whenever the model needs both image and refs.| Parameter | Type | Description |
|---|---|---|
| beyondViewport | boolean | Capture the full scrollable document instead of just the visible viewport. Coordinate space becomes 'document'; bounding boxes use page coords. |
| browser | string | Browser to use for this request (e.g. chrome, cloak). The static ghost-chrome runtime cannot paint, so it falls back to chrome. |
| depth | number | Snapshot tree depth limit (e.g. 3) |
| filter | string | Snapshot filter: 'interactive' (default) or 'all' |
| noAnimations | boolean | Inject prefers-reduced-motion CSS for the capture window |
| quality | number | JPEG quality 0-100 (JPEG only) |
| requirePair | boolean | Return 409 if the main frame navigates during the capture window (loaderId changes). |
| scale | number | Rescale the output image bitmap. Default 1 (native). 0.5 halves each axis. |
| selector | string | Scope: clips screenshot and filters snapshot subtree to the same element. Wins over beyondViewport. |
| wait | string | Lifecycle wait before capture: 'stable' (default — waits for Page.lifecycleEvent quiescence), 'load' (polls document.readyState until complete), or 'none' |
| withBounds | boolean | Populate boundingBox + visible on snapshot nodes (default true). Set false to skip per-node DOM.getBoxModel round trips when bounds are not needed. |
pinchtab_clickClick an element. Prefer selector from pinchtab_find.best_ref (e.g. 'e5') to avoid extra snapshots.| Parameter | Type | Description |
|---|---|---|
| dialogAction | string | Optional one-shot dialog handling for this click: 'accept' or 'dismiss' |
| dialogText | string | Optional prompt text used with dialogAction='accept' |
| mode | string | Optional click delivery override: 'dom' for element.click() or 'dispatch' for synthetic click events on the target |
| query | string | Alias for semantic targeting when selector is omitted (example: 'login button' -> find:login button) |
| selector | string | Unified selector: ref (e.g. 'e5'), CSS, XPath, text, find, role, label, placeholder, alt, title, testid, or first/last/nth. Non-ref selectors resolve in the current frame scope. |
| snap | boolean | Return interactive compact snapshot after click (saves a round-trip) |
| waitNav | boolean | Wait for navigation after the click when the element triggers a page change |
| x | number | Optional X coordinate for coordinate click |
| y | number | Optional Y coordinate for coordinate click |
pinchtab_close_tabClose a browser tabpinchtab_connect_profileGet the user-facing connect URL and instance status for a profile| Parameter | Type | Description |
|---|---|---|
| profile * | string | Profile name or profile ID |
pinchtab_consoleRead the tab's captured browser console logs (console.log/warn/error and friends). Check this when a page looks healthy in the snapshot but does not respond to actions — the log often says why. A payload full of error-level logs is still a successful call.| Parameter | Type | Description |
|---|---|---|
| clear | boolean | Clear the tab's console log buffer instead of reading it |
pinchtab_cookiesGet cookies for the current pagepinchtab_cookies_setSet one cookie on the current page, for reusing an authenticated session. An empty value blanks the cookie without deleting it.| Parameter | Type | Description |
|---|---|---|
| domain | string | Cookie domain |
| expires | number | Expiry as a Unix timestamp in seconds; omit for a session cookie |
| httpOnly | boolean | Mark the cookie HttpOnly |
| name * | string | Cookie name |
| path | string | Cookie path |
| sameSite | string | SameSite attribute: Strict, Lax or None |
| secure | boolean | Mark the cookie Secure |
| url | string | Target URL (default: the tab's current page) |
| value * | string | Cookie value; an empty string blanks the cookie |
pinchtab_dialogHandle a JavaScript dialog (alert, confirm, prompt). Accept or dismiss the currently open dialog.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to take: 'accept' or 'dismiss' |
| text | string | Text to enter for prompt dialogs (only used with accept) |
pinchtab_errorsRead the tab's uncaught JavaScript errors (exceptions the page threw). Check this when a snapshot looks right but clicks do nothing: a script that died on load leaves the DOM present and the handlers unwired. A payload full of errors is still a successful call.| Parameter | Type | Description |
|---|---|---|
| clear | boolean | Clear the tab's error buffer instead of reading it |
pinchtab_evalExecute JavaScript in the browser and return the result. This is not frame-scoped; current pinchtab_frame state does not change evaluation context. A Promise-returning expression needs awaitPromise:true to resolve, otherwise it returns {} with a hint.| Parameter | Type | Description |
|---|---|---|
| awaitPromise | boolean | Resolve a returned Promise before responding, returning its resolved value (matches CLI --await-promise) |
pinchtab_extractExtract typed values from the page against a JSON schema. Prefer it over snapshot-then-parse for structured values; each field returns a ref for action tools. If a field comes back low confidence, pin it with x-pinchtab-hint.| Parameter | Type | Description |
|---|---|---|
| maxItems | number | Cap on items per array (default 100) |
| schema * | object | JSON schema: string/number/integer/boolean properties or arrays of such objects; x-pinchtab-scope pins an array's container |
| scope | string | Confine all fields to one element's subtree (ref, role:, text: or query) |
pinchtab_fillFill an input field directly via JavaScript dispatch| Parameter | Type | Description |
|---|---|---|
| snap | boolean | Return interactive compact snapshot after fill (saves a round-trip) |
| value * | string | Value to fill; send an empty string to clear the field |
pinchtab_findFind elements by natural-language query. Returns best_ref and selector hints that should be reused in action tools.| Parameter | Type | Description |
|---|---|---|
| query * | string | Text or CSS selector to search for |
pinchtab_focusFocus an elementpinchtab_forwardGo forward one entry in the tab's session history. Returns the tab ID and the URL the tab landed on.pinchtab_frameGet or set the current frame scope for selector-based actions and snapshots| Parameter | Type | Description |
|---|---|---|
| target | string | Frame target: 'main', a snapshot ref, a selector for an iframe element, or a frame name/URL |
pinchtab_get_textExtract readable text content from the current page. Inherits the current frame scope for the tab unless no frame is selected.| Parameter | Type | Description |
|---|---|---|
| format | string | Response format: 'text'/'plain' for plain text, default JSON envelope |
| maxChars | number | Maximum characters in response (e.g. 3000) |
| mode | string | Extraction mode: 'readability' (default), 'raw', or 'markdown' (preserves links and tables; best for articles). Supersedes raw. |
| raw | boolean | Return raw text without formatting |
pinchtab_handoffPause a tab for human handoff (a CAPTCHA, a login, a consent wall the agent must not solve). While paused every action tool on that tab is refused with tab_paused_handoff. Return control to the user, ask them to finish in the browser, then call pinchtab_resume. Other tabs are unaffected.| Parameter | Type | Description |
|---|---|---|
| reason | string | Why the tab is handed off, e.g. captcha_manual or login_required (default manual_handoff) |
| timeoutMs | number | Optional auto-resume after this many milliseconds; 0 or omitted means the tab stays paused until pinchtab_resume |
pinchtab_handoff_statusReport a tab's handoff state: status paused_handoff with reason, pausedAt and any expiresAt while a human holds it, or status active once resumed or auto-resumed by its timeout.pinchtab_healthCheck PinchTab server health statuspinchtab_hoverHover over an element| Parameter | Type | Description |
|---|---|---|
| x | number | Optional X coordinate for coordinate hover |
| y | number | Optional Y coordinate for coordinate hover |
pinchtab_keySend keyboard input; 'action' picks which. action='press': press a keyboard key (Enter, Tab, Escape, etc.) — needs 'key'. action='down': hold a key down, e.g. modifier keys like Control, Shift, Alt — needs 'key'. action='up': release a held key — needs 'key'. action='type': type text at the currently focused element via keystroke events (keyDown + keyUp per character) — needs 'text'. action='insert': insert text at the currently focused element without key events (paste-like) — needs 'text'. 'nodeId' is honoured by action='press', which focuses that node before the key is sent.| Parameter | Type | Description |
|---|---|---|
| action * | string | Keyboard action to send |
| key | string | Key for action press/down/up (e.g. 'Enter', 'Tab', 'Escape', 'Control', 'Shift', 'Alt', 'a') |
| text | string | Text for action type/insert |
pinchtab_list_tabsList all open browser tabspinchtab_memoryJavaScript heap usage and DOM counters (documents, nodes, listeners, frames) for the tab. gc=true collects garbage first, so reads around an action show retained memory.| Parameter | Type | Description |
|---|---|---|
| gc | boolean | Run a garbage collection before reading |
pinchtab_memory_compareCompare two pinchtab_memory_snapshot ids: per-constructor count and self-size deltas, largest first, and new duplicate strings. Snapshot, act, snapshot, compare to find a leak. Needs security.allowMemory.| Parameter | Type | Description |
|---|---|---|
| base * | string | Earlier snapshot id |
| head * | string | Later snapshot id |
| retained | boolean | Add retained sizes (slower) |
| top | number | Rows (default 20) |
pinchtab_memory_snapshotTake a V8 heap snapshot to a server-side file; returns its path and a summary (top constructors by size and count, duplicate strings). Needs security.allowMemory.| Parameter | Type | Description |
|---|---|---|
| top | number | Rows per table (default 20) |
pinchtab_navigateNavigate to a URL in the browser| Parameter | Type | Description |
|---|---|---|
| newTab | boolean | Open the URL in a new tab instead of reusing the current one; the returned tabId targets it in later tools |
| snap | boolean | Return interactive compact snapshot after navigation (saves a round-trip) |
| url * | string | The URL to navigate to |
pinchtab_networkList recent network requests captured from the browser. Returns method, status, URL, type, size, and timing for each request.| Parameter | Type | Description |
|---|---|---|
| bufferSize | number | Per-tab buffer size for new capture (default from config, typically 100) |
| filter | string | URL pattern filter (substring match) |
| limit | number | Maximum number of entries to return |
| method | string | HTTP method filter (GET, POST, etc) |
| status | string | Status code range filter (e.g. '4xx', '5xx', '200') |
| type | string | Resource type filter (xhr, fetch, document, stylesheet, script, image, etc) |
pinchtab_network_clearClear captured network data for a tab or all tabs| Parameter | Type | Description |
|---|---|---|
| tabId | string | Target tab ID (optional, clears all if empty) |
pinchtab_network_detailGet full details of a specific network request including headers, timing, and optionally the response body| Parameter | Type | Description |
|---|---|---|
| body | boolean | Include response body (can be large) |
| requestId * | string | The request ID from pinchtab_network results |
pinchtab_network_routeInstall a request interception rule on a tab. Action 'abort' blocks matching requests, 'fulfill' returns a mocked response body, 'continue' passes through. Fulfill is BLOCKED on hosts in security.allowedDomains (the operator's authorized/sensitive surfaces) and ALLOWED on other hosts; matched fulfill rules on allowlisted hosts fall through to a real network fetch.| Parameter | Type | Description |
|---|---|---|
| action | string | 'continue' (default), 'abort', or 'fulfill' |
| body | string | Response body (with action=fulfill). Sent verbatim; not auto-encoded. |
| contentType | string | Response Content-Type for fulfill (default application/json) |
| method | string | Limit to an HTTP method (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS). Fulfill rules without method skip OPTIONS preflights to avoid breaking or bypassing CORS. |
| pattern * | string | URL pattern: substring (no wildcards) or glob ('*', '?') |
| resourceType | string | Limit to a CDP resource category (e.g. script, image, xhr, fetch, stylesheet) |
| status | number | Response status code for fulfill (default 200) |
pinchtab_network_rulesList the interception rules installed on a tab: returns {tabId, rules:[{pattern, action, ...}]} where action is continue, abort or fulfill (with body, contentType, status, resourceType or method when set). Rules survive navigation, so check this on a tab you did not set up; an empty rules list means the tab mocks and blocks nothing.pinchtab_network_unrouteRemove a tab's interception rule by pattern, or all rules if pattern is omitted| Parameter | Type | Description |
|---|---|---|
| pattern | string | Pattern to remove (omit to clear all rules) |
pinchtab_pdfExport the current page as a PDF (returns base64-encoded PDF)| Parameter | Type | Description |
|---|---|---|
| landscape | boolean | Landscape orientation |
| pageRanges | string | Pages to export (e.g., '1-3,5') |
| scale | number | Print scale 0.1-2.0 (default: 1.0) |
pinchtab_recordRecord browser activity; 'action' picks which. action='start': start recording — requires security.allowScreencast, and GIF works without ffmpeg while WebM/MP4 need ffmpeg. action='stop': stop recording and save the encoded file; encoding may take a while for long recordings. action='status': check active recording status (format, fps, duration, frame count).| Parameter | Type | Description |
|---|---|---|
| action * | string | Recording action to take |
| file | string | Output file path for action start/stop (.gif, .webm, or .mp4); the format is read from the extension, and stop must be given the same path start was |
| fps | number | Frames per second 1-30 (default: 5) |
| quality | number | JPEG capture quality 1-100 (default: 80) |
| scale | number | Resolution scale 0-1.0 (default: 1.0) |
pinchtab_reloadReload the current page. Returns the tab ID and the URL the tab landed on.pinchtab_resumeResume a tab paused for human handoff so action tools work again. Call it only after the user has confirmed they finished the manual step; check with pinchtab_handoff_status first when unsure.| Parameter | Type | Description |
|---|---|---|
| status | string | Optional note recorded with the resume, e.g. completed or failed |
pinchtab_scrapeScrape a whole site into a page tree of markdown. Pages are discovered and extracted over plain HTTP first (SeaPortal: sitemap/link crawl, URL-pattern sampling); only pages whose HTTP extraction is thin, blocked, or failed are re-rendered in the real browser, so JS-only content still lands. Each page records its content source (http|browser) and routing verdict. For a LARGE site, first call with preview=true for a cheap outline (titles, sizes, snippets, routing verdicts — no bodies, no browser), then expand the pages you want with only=<comma-separated urls>. Full reports can be large, so prefer preview then only over scraping everything.| Parameter | Type | Description |
|---|---|---|
| concurrency | number | Pages browser-rendered in parallel (default 2, max 8) |
| enrichAll | boolean | Browser-render every reachable page, ignoring routing |
| exclude | string | Comma-separated regexes; skip URLs matching one |
| include | string | Comma-separated regexes; only crawl URLs matching one |
| maxPages | number | Maximum pages sampled across the site (default 50) |
| maxPerPattern | number | Maximum pages sampled per URL-pattern group (default 8) |
| noBrowser | boolean | HTTP crawl only; record routing verdicts without browser rendering |
| only | string | Comma-separated URLs to expand at full fidelity instead of crawling — the drill-down after a preview |
| preview | boolean | Outline only: page tree, sizes (charCount), and snippets — no browser rendering or full bodies. Survey a large site before expanding. |
| timeoutSeconds | number | Overall HTTP crawl budget in SECONDS (default 60); unlike the millisecond timeoutMs of pinchtab_wait and pinchtab_handoff |
| url * | string | Site URL to crawl (discovery seeds from this host's root) |
pinchtab_screenshotTake a screenshot of the current page. The result is delivered as an MCP image content block (image/jpeg by default, image/png with format='png') so clients render it directly. The accompanying text block is always a JSON envelope `{"format": "jpeg"|"png", "annotations": [...]}` — `annotations` is an empty array by default. With `annotate=true`, the picture has numbered overlay boxes on interactive elements and `annotations` is populated with `[{"ref": "e5", "role": "button", "name": "Submit", "tag": "button", "box": {"x": <number>, "y": <number>, "w": <number>, "h": <number>}}, ...]`; the `ref` values reuse the same selectors as pinchtab_click/fill/etc. Set `beyondViewport=true` to capture the entire scrollable document instead of the visible viewport.| Parameter | Type | Description |
|---|---|---|
| annotate | boolean | Overlay numbered ref boxes on interactive elements (or on selector matches). Returns the image plus a structured list of {ref, role, name, box}. |
| beyondViewport | boolean | Capture the entire scrollable document, not just the visible viewport. Box coordinates in the annotations envelope are document-relative when this is true. Ignored when selector is set. |
| quality | number | JPEG quality 0-100 (only for JPEG format) |
| scale | number | Rescale the output image bitmap. Default 1 (native). 0.5 halves each axis (quarter of the pixels). |
| selector | string | Unified selector. Without annotate it clips the screenshot to the element. With annotate=true it narrows which elements receive overlay boxes (default: all interactive elements). |
pinchtab_scrollScroll the page or an element. For element targeting + pixel deltas, this automatically uses wheel semantics for smoother behavior.| Parameter | Type | Description |
|---|---|---|
| deltaX | number | Horizontal wheel delta for precise scrolling |
| deltaY | number | Vertical wheel delta for precise scrolling |
| direction | string | Convenience direction: 'down', 'left', 'right' or 'up'. Moves |
| pixels | number | Number of pixels to scroll (positive=down, negative=up) |
| selector | string | Unified selector for element to scroll (omit for page scroll). Non-ref selectors resolve in the current frame scope. |
| steps | number | Multiplier for direction-based scrolling (default 1), so steps=2 moves twice |
| x | number | Optional X coordinate for wheel target |
| y | number | Optional Y coordinate for wheel target |
pinchtab_scroll_into_viewScroll a target element into view and return geometry details for stable follow-up actions.pinchtab_selectSelect a dropdown option by value or visible text| Parameter | Type | Description |
|---|---|---|
| selector | string | Unified selector for the select element. Non-ref selectors resolve in the current frame scope. |
| snap | boolean | Return interactive compact snapshot after select (saves a round-trip) |
| value * | string | Option value or visible text to select |
pinchtab_snapshotGet an accessibility tree snapshot of the current page. Use this sparingly: prefer pinchtab_find + action selectors for faster loops.| Parameter | Type | Description |
|---|---|---|
| compact | boolean | Compact format (default; false=JSON) |
| depth | number | Maximum tree depth (e.g. 3) |
| diff | boolean | Only changes since last snapshot |
| format | string | Output format: 'compact' or 'text' |
| interactive | boolean | Only interactive elements (buttons, links, inputs) |
| maxTokens | number | Maximum estimated tokens in response (e.g. 300) |
| noAnimations | boolean | Disable animations before capturing the snapshot |
| selector | string | Unified selector to scope the snapshot (ref, CSS, XPath, text, find, role, label, placeholder, alt, title, testid, first/last/nth). Selectors resolve in the current frame scope; use pinchtab_frame for iframe content. |
pinchtab_typeType text into an input elementpinchtab_waitWait for one condition; 'for' picks which and 'value' carries it. for='ms': wait a specified number of milliseconds (max 30000; needs no browser). for='selector': wait for an element matching a unified selector (CSS, XPath, text, or ref) to appear or disappear on the page — see 'state'. for='text': wait for specific text to appear on the page. for='url': wait for the page URL to match a glob pattern (e.g. '**/dashboard'). for='load': wait for a page load state — 'ready-state' (readyState=complete), 'content-loaded' (readyState in {interactive, complete}), or 'network-idle' (0 in-flight requests for 500ms). for='function': wait for a JavaScript expression to return a truthy value.| Parameter | Type | Description |
|---|---|---|
| for * | string | What to wait for |
| state | string | Element state to wait for with for='selector': 'visible' (default) or 'hidden' |
| value * | string | What to wait for, read as 'for' says: a millisecond count, a selector, page text, a URL glob pattern, a load state, or a JavaScript expression |
Security checks
Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.5K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum and 2 more.
- !No dynamic code executionScanned 818 source files and found 4 calls to eval or shell execution, in cmd/pinchtab/cmd_dashboard.go:114, internal/audit/run.go:156 and internal/bridge/cleanup_windows.go:22 among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- stdiointernal/mcp/server.go:40
- Starts other programs
- 21 callsinternal/bridge/cleanup.go:167, internal/bridge/cleanup.go:195, internal/bridge/cleanup_windows.go:22
- Outbound network calls
- 77 callsinternal/bridge/runtime/cdp_url.go:174, internal/bridge/runtime/cdp_url.go:368, internal/bridge/runtime/cdp_url.go:369
- Writes or deletes files
- 168 callsinternal/activity/activity.go:297, internal/activity/activity.go:641, internal/activity/activity.go:655
- Lockfile
- go.sum and 2 more
Pattern matches on the source text of 818 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.5K words, fetched 7 days ago. The original in the repository is authoritative.
Read full README