MCP Tool Reference

PinchTab currently exposes 34 MCP tools. All tool names are prefixed with pinchtab_ and are served over stdio JSON-RPC.

For selector-based interaction tools, prefer selector. ref is still accepted as a deprecated fallback on the element-action tools.

If you allow MCP browsing on non-local or non-trusted domains, treat pinchtab_snapshot and pinchtab_get_text output as untrusted page data. Those tools can surface hostile prompt text from visited pages; operators should keep IDPI/domain restrictions narrow unless wider access is intentional.

Selector forms include:

  • e5
  • #login
  • xpath://button
  • text:Submit
  • find:login button
ToolKey ParametersNotes
pinchtab_navigateurl required, tabId optionalUses /navigate; omitting tabId opens a new tab
pinchtab_snapshottabId, interactive, compact, format, diff, selector, maxTokens, depth, noAnimationsselector scopes the snapshot; format is limited to compact or text
pinchtab_screenshottabId, selector, css1x, format, qualityselector captures a specific element in current frame scope; css1x=true exports selector shots at CSS pixel size; format is jpeg or png
pinchtab_get_texttabId, raw, format, maxCharsraw=true maps to /text?mode=raw; format=text/plain returns plain text; inherits the current pinchtab_frame scope for that tab

Interaction

ToolKey ParametersNotes
pinchtab_clickselector required, tabId, ref, waitNavClick element by selector; waitNav=true waits for navigation
pinchtab_typeselector required, text required, tabId, refSends key events
pinchtab_presskey required, tabIdPress a key such as Enter
pinchtab_hoverselector required, tabId, refHover element
pinchtab_focusselector required, tabId, refFocus element
pinchtab_selectselector required, value required, tabId, refSelect <option> by value or visible text
pinchtab_scrollselector, pixels, tabId, refOmit selector to scroll the page
pinchtab_fillselector required, value required, tabId, refDirect fill instead of keystrokes

Keyboard

ToolKey ParametersNotes
pinchtab_keyboard_typetext required, tabIdTypes at the currently focused element
pinchtab_keyboard_inserttexttext required, tabIdPaste-like insert without key events
pinchtab_keydownkey required, tabIdHold a key down
pinchtab_keyupkey required, tabIdRelease a key

Content

ToolKey ParametersNotes
pinchtab_evalexpression required, tabIdRequires security.allowEvaluate (documented non-default JS-execution opt-in)
pinchtab_pdftabId, landscape, scale, pageRangesReturns base64-encoded PDF content
pinchtab_findquery required, tabIdSemantic element search

Tab Management

ToolKey ParametersNotes
pinchtab_list_tabsnoneLists open tabs
pinchtab_close_tabtabIdCloses the given tab
pinchtab_healthnoneChecks server health
pinchtab_cookiestabIdReads cookies for a tab
pinchtab_connect_profileprofile requiredReturns the connect URL and instance status for a profile

Wait Utilities

ToolKey ParametersNotes
pinchtab_waitms requiredFixed-duration wait, capped at 30000 ms
pinchtab_wait_for_selectorselector required, timeout, state, tabIdstate is visible or hidden
pinchtab_wait_for_texttext required, timeout, tabIdWait for body text
pinchtab_wait_for_urlurl required, timeout, tabIdURL glob match
pinchtab_wait_for_loadload required, timeout, tabIdCurrently supports networkidle
pinchtab_wait_for_functionfn required, timeout, tabIdJS expression must become truthy

Network

ToolKey ParametersNotes
pinchtab_networktabId, filter, method, status, type, limit, bufferSizeLists recent network requests
pinchtab_network_detailrequestId required, tabId, bodybody=true includes response body when available
pinchtab_network_cleartabIdClears one tab or all tabs when omitted

Dialog

ToolKey ParametersNotes
pinchtab_dialogaction required, text, tabIdaction is accept or dismiss

Return Shapes

Typical results:

  • navigation tools return JSON from the matching HTTP endpoint
  • pinchtab_snapshot returns text for compact/text formats and JSON otherwise
  • pinchtab_get_text returns plain text when format=text|plain, JSON otherwise
  • pinchtab_screenshot and pinchtab_pdf return JSON containing base64 payloads
  • wait tools return wait status JSON
  • network tools return the same request logs you would see from /network

Security note:

  • extracted text and snapshot content should be treated as untrusted content from the visited page, not as trusted instructions
  • widening IDPI allowlists or disabling strict protections increases the chance that prompt-injection text reaches downstream agent logic

For setup and client configuration, see MCP Server.