Skip to main content
Glama

browser_click

Clicks a webpage element to trigger buttons, links, or menus using a snapshot ref, numeric index, or CSS selector, enabling automated navigation and interaction with live browser pages.

Instructions

Click an element on the webpage by its snapshot ref (e.g. "@e12"), numeric index, or CSS selector.

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
refNoElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
indexNoThe numeric index of the interactive element from the snapshot (mapped to ref "@e<index>").
tabIdNoOptional browser tab id to act on instead of the focused tab.
buttonNo
selectorNoAlternative CSS selector of the element to click.
modifiersNo
clickCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

C2.7/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 discloses nothing about what a click does beyond the literal act. It does not say whether the element is scrolled into view, whether the call waits for actionability or navigation, what error surfaces for a stale/unknown ref, or whether the click can trigger side effects like downloads or dialogs.

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 three targeting options are ordered sensibly. It is efficient, though the terseness is arguably under-specification for a 7-parameter interaction tool rather than genuine economy.

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?

For a seven-parameter browser automation tool with no annotations and no output schema, the description is too thin: it omits prerequisites, failure behavior, and the semantics of four parameters. An agent could form the call, but not predict what will happen or how to recover from errors.

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

Parameters2/5

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

Schema description coverage is only 57% across seven parameters, and the description names just three of them (ref, index, selector) with no added meaning — the "@e12" example and the preference for ref over index already live in the schema. The four remaining parameters (tabId, button, modifiers, clickCount) get no clarification in either place beyond bare names or enums, so the description does not compensate for the coverage gap.

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 gives a specific verb ("Click") and resource ("an element on the webpage") and enumerates the three targeting mechanisms (snapshot ref, numeric index, CSS selector). It is unambiguous about what the tool does, though it never contrasts itself with related siblings such as browser_hover, browser_drag, or browser_type, which an agent must infer.

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 or when-not-to-use guidance: nothing says a snapshot must precede clicking, that this tool is for activating elements rather than entering text (browser_type) or hovering (browser_hover), or what to do if the click fails. The only hint of workflow ordering lives in the schema's reference to browser_snapshot, not in the description.

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