Skip to main content
Glama

browser_click

Clicks an element on the active page via element index, selector, or coordinates, with actionability checks and delivery/retry reporting.

Instructions

Click an element on the active page. Give exactly one of element_index (from the latest browser_snapshot of that page; valid 30 s; page, URL, tag, name, href and position are re-checked, element_no_longer_valid when stale), selector (a fallback) or xy (pixel coordinates; not recommended). Real Playwright pointer input with actionability checks: occluded or not_actionable when covered or disabled — never a synthetic JS .click(). Reports delivery and retry.

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
xyNo
buttonNo
selectorNo
element_indexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior4/5

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

With annotations only declaring readOnly=false and openWorld=true, the description carries real weight: it discloses the 30 s element-index validity, that page/URL/tag/name/href/position are re-checked, the element_no_longer_valid and not_actionable/occluded failure modes, that input is genuine Playwright pointer input with actionability checks rather than a synthetic JS .click(), and that delivery and retry are reported. That is substantial behavioral context beyond the annotations.

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?

Front-loaded with the action, then the three targeting modes in a clearly parallel structure, then behavioral guarantees. It is dense but every clause carries information; only the closing 'Reports delivery and retry' is slightly underspecified for the space it takes.

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 four-parameter mutation tool with no output schema, the description covers failure modes, freshness semantics, and the nature of the input event well. The main completeness gap is the undocumented button parameter and no statement about what a successful result contains, though output-schema absence lowers that burden.

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 0%, so the description must do all the work. It explains element_index (source snapshot, 30 s validity, re-validation), selector (fallback role) and xy (pixel coordinates, discouraged), but the fourth parameter, button, is never mentioned, leaving a meaningful gap for a click tool where left/right/middle matters.

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?

States a specific verb and resource — 'Click an element on the active page' — which clearly separates it from page-level tools like browser_navigate or browser_snapshot. It implicitly distinguishes browser-level clicking from OS-level alternatives by anchoring to the active page, though it never names mac_click as the alternative.

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 strong in-tool guidance on which targeting mode to use — element_index preferred with the freshness rule, selector as fallback, xy explicitly 'not recommended'. However it offers no guidance on when to use this tool versus OS-level clicking (mac_click) or versus browser_press_key/browser_fill for keyboard-driven interaction.

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