Skip to main content
Glama
patchright-mcp

patchright-mcp

by quantmew

interact

Perform page actions including click, fill, select, scroll, hover, press, and wait to automate browser tasks on a specified page.

Instructions

Perform interactions on a page (click, fill, select, scroll, hover, press, wait)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "browserId": "<browserId>",
      "pageId": "<pageId>",
      "action": "<action>"
    },
    "name": "interact"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNoValue for fill/select/press actions
actionYesThe type of interaction to perform
pageIdYesPage ID from a previous browse operation
optionsNo
selectorNoCSS selector for the element to interact with
browserIdYesBrowser ID from a previous browse operation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about whether actions auto-wait for elements, what happens when a selector is missing, whether the call mutates page state irreversibly, or what a success/failure response looks like. The action list merely restates the schema enum.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler and the action set visible immediately. It is efficient, though the parenthetical list duplicates the action enum rather than adding information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a six-parameter, nested-options browser-driving tool with no annotations and no output schema, so the description is the only place to explain prerequisites and per-action requirements (e.g. that fill needs a selector and value). It leaves those gaps entirely to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 83%, so parameters like selector, value, and the options sub-fields are already documented structurally. The description adds no meaning beyond the enum it echoes, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('perform interactions') and enumerates the seven action types, so an agent can tell this is the page-action tool rather than browse/navigate/extract. It does not explicitly contrast itself with those siblings, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no mention of alternatives such as navigate (for loading URLs) or extract (for pulling data). The only implied usage is that it operates on a page obtained earlier, which the agent must infer from the pageId parameter.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools