Skip to main content
Glama

browser_click

Clicks an element with a real mouse event, waits for it and any navigation it starts, and reports what covers it if the click fails.

Instructions

Click an element with a real mouse event; waits for it and any navigation it starts. Fails, naming what covers it.

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
refNoref from browser_snapshot
textNoVisible text/label, instead of ref
stateNotrue: full page state
buttonNoDefault left
selectorNoCSS selector, instead of ref
snapshotNoSnapshot after the action
until_goneNoClick again (Load more) until it is gone or disabled or a click changes nothing; true, or the most clicks (50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.13.1
    • addedInput schema / properties / until_gone
      Added value: +{
      +  "description": "Click again (Load more) until it is gone or disabled or a click changes nothing; true, or the most clicks (50)",
      +  "type": [
      +    "boolean",
      +    "integer"
      +  ]
      +}
  2. Changed7 schema fields changedv0.9.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / button / description
      Previous value: -"Default left; right opens a context menu"New value: +"Default left"
    • changedInput schema / properties / ref / description
      Previous value: -"Element ref from browser_snapshot, e.g. 12"New value: +"ref from browser_snapshot"
    • changedInput schema / properties / selector / description
      Previous value: -"CSS selector (first match), instead of ref"New value: +"CSS selector, instead of ref"
    • changedInput schema / properties / snapshot / description
      Previous value: -"Also return the page snapshot after the action"New value: +"Snapshot after the action"
    • addedInput schema / properties / state
      Added value: +{
      +  "description": "true: full page state",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / text / description
      Previous value: -"Visible text or label of the element, instead of ref"New value: +"Visible text/label, instead of ref"
  3. First observedv0.7.1

TDQS

A3.7/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 real work: it discloses that the click waits for the element and for any navigation it triggers, and that failure reports which element is covering the target. That last detail is genuinely useful — it tells the agent overlays exist and can be dealt with. It stops short of stating timeout behavior, whether the element is scrolled into view, or what happens when several elements match.

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?

Two short sentences, front-loaded with the action and its mechanism, then the waiting and failure traits. Every clause conveys distinct information; nothing is redundant with the tool name.

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

Completeness3/5

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

For a seven-parameter, zero-required tool with no annotations and no output schema, the description covers action semantics, waiting, and failure but omits targeting precedence, timeout expectations, and return/state behavior when snapshot or state flags are set. It is adequate to invoke the tool, but an agent still has to resolve several calling decisions from the schema alone.

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 100%, so all seven parameters are already documented, including the ref/text/selector alternatives and the until_gone repetition semantics. The description adds no guidance on precedence among ref, text, and selector when more than one is supplied, so it neither compensates for nor worsens the schema.

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") and qualifies the mechanism ("with a real mouse event"), which distinguishes it from synthetic-event siblings. It does not name any sibling or explicitly contrast with browser_fill/browser_type/browser_evaluate, so differentiation is left partly to inference.

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 only implied: the "real mouse event" framing and the failure note imply this is the preferred interaction path when an element must be genuinely clicked. There is no explicit when-to-use/when-not statement, no mention of preferring this over browser_evaluate for real user-like interaction, and no prerequisites (e.g. needing a prior browser_snapshot for ref).

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