Skip to main content
Glama

browser_click

Destructive

Clicks page elements by selector, text, or coordinates to automate browser interactions; supports hidden tabs, iframes, and post-click verification.

Instructions

Send trusted click to @eN, CSS, text, or (x, y). Pass front=true if tab may be hidden, fast=true to skip pacing, verify='' to assert.

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": "browser_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoX coordinate.
yNoY coordinate.
nthNo1-based match index.
tabNoTab index string (e.g. '0'), targetId, or URL/title substring.
fastNoSkip pointer pacing.
textNoVisible text label (pierces shadow roots).
exactNoExact text match.
frameNoIframe #fN, id, URL substring, or 'any'.
frontNoRaise hidden tab first.
verifyNoCSS selector to poll after click ('!' for removal).
withinNoContainer CSS scope.
selectorNoCSS selector or @eN ref.
syntheticNoUse el.click() instead of real input.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true, openWorldHint=true, and non-idempotence, so the safety bar is lower. The description still adds genuine context: that clicks are 'trusted' real input (versus the synthetic flag), that pacing can be skipped, that a hidden tab may need raising, and that verify can poll for post-click state ('!' for removal). It does not explain what happens on a failed match or whether the click can be retried.

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

Conciseness5/5

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

A single sentence, front-loaded with the core action and targeting modes, followed by the highest-value flags. No filler and nothing repeated from the schema.

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 13-parameter mutation tool with no output schema, the description covers the primary targeting modes and the three flags whose meaning is least obvious from their schema text. Parameters like nth, exact, within, frame, and synthetic are left entirely to the schema, which is acceptable at 100% coverage but means the description alone would not let an agent call this correctly.

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

Parameters4/5

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

Schema coverage is 100%, so a 3 is the baseline. The description earns above that by supplying decision heuristics the schema lacks — the condition under which front should be set, the effect of fast, and the assertion syntax for verify — plus a clear statement of the accepted selector forms.

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 opens with a specific verb+resource ('Send trusted click') and immediately enumerates the four targeting modes (@eN refs, CSS, text, coordinates), which lets an agent distinguish it from browser_fill, browser_press, or browser_scroll. It stops short of naming any sibling explicitly, so the differentiation is implicit rather than stated.

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?

It gives conditional guidance for three flags ('front=true if tab may be hidden', 'fast=true to skip pacing', 'verify=... to assert'), which is real when-to-use advice. However, there is no guidance on when to choose this tool over browser_fill, browser_press, or browser_eval, and no preconditions or failure modes are mentioned.

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