Skip to main content
Glama
mcp-browser-dev-tools

mcp-browser-dev-tools

by Hinaser

click

Simulates real mouse input at an element center or x,y coordinates; accepts alert/confirm dialogs, dismisses prompts, and reports page changes.

Instructions

Click with real mouse input at an element's center (fails if something covers it) or at x, y. Accepts alert and confirm dialogs, dismisses prompts. Returns changes: what changed on the page. Locators in every tool are case-sensitive: ref=e12 until the page navigates; CSS; text=Foo and name=Foo, the first visible element whose text or accessible name equals, else contains, Foo (a label finds its control); role=button[name="Save"]; a >> b for b inside a, and has-text=Foo to filter: tr >> has-text=Ada >> text=Delete. Only refs reach into iframes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoViewport CSS px, with y, instead of selector.
yNo
buttonNoDefault left.
selectorNoLocator: ref=e3, CSS, text=…, role=button[name="…"], name=…, or a >> b
sessionIdNo
timeoutMsNoms to retry while the element is missing, covered, outside the viewport, or disabled (default 2000).
clickCountNo2 for a double click.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it discloses real mouse input, failure if the target is covered, alert/confirm handling, prompt dismissal, return data about page changes, and iframe accessibility limits for refs. It could say more about actionability behavior such as scrolling into view or waiting for enabled/stable elements, but the core behavioral picture is strong.

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?

The description is front-loaded with the action and target, then behavioral notes, then locator grammar. It is dense but mostly earns its length because the locator semantics are complex and important for correct invocation. The locator section is lengthy for a single tool description, but not wasteful given the task complexity.

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

Completeness4/5

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

For a seven-parameter tool with no output schema and no annotations, the description is largely complete: it explains what the tool does, important failure/dialog behavior, returned changes, and rich locator semantics. Some actionability details are left to the schema or omitted, such as viewport scrolling and disabled-element retry behavior, but the definition gives an agent enough to invoke the tool correctly in most cases.

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

Parameters5/5

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

The description adds substantial meaning beyond the input schema, especially for the complex selector parameter. It defines locator syntax, case sensitivity, ref lifetime until navigation, text/name matching rules including equals-then-contains fallback, role syntax, chained locators, has-text filtering, and iframe limitations. The schema documents the remaining parameters adequately.

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

Purpose5/5

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

The description states a specific action and target: real mouse input clicked at an element's center or at x, y coordinates. It also distinguishes behavior by noting dialog acceptance/dismissal and return-value changes, so an agent can tell this is a direct click tool rather than hover, type, or key press.

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

Usage Guidelines3/5

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

Usage is implied: call this to perform a mouse click either on a locator or at coordinates. The description does not explicitly say when to prefer click over hover, type, select, or press_key, nor does it name alternatives for different interaction needs. It does mention the covered-element failure mode, which is useful context but not full routing guidance.

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