Skip to main content
Glama

Click

browser_click

Clicks a page element by snapshot ref or semantic locator and returns what changed, enabling agents to interact with web UIs and verify results.

Instructions

Click an element by ref (from browser_snapshot) or semantic locator. Returns what changed on the page.

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
nthNo
refNoElement ref from snapshot (preferred)
nameNo
roleNo
textNo
exactNo
labelNo
buttonNo
expectNoExpectSpec postconditions
pageIdNo
testIdNo
withinNoScope to a unique container (ref, role+name, label, testId or CSS selector)
sessionNo
selectorNoCSS (last resort)
snapshotNoPage state returned after the action: diff (default), full, none
modifiersNo
placeholderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already disclose non-read-only, non-destructive, open-world behavior; the description adds one useful fact beyond them, namely that the result reports what changed on the page. It omits other behavior an agent needs: right/middle button effects, modifier handling, where expect postconditions apply, and what happens on unresolvable locators.

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?

Two short sentences, front-loaded with the action and targeting mechanism, with no filler. It is tight but perhaps too terse for a 17-parameter tool, trading brevity for missing detail.

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 17-parameter tool with nested objects, low schema coverage, and no output schema, the definition is thin. The one-sentence return summary is helpful, but the postcondition (expect), scoping (within), and click-modifier surface area are left entirely unexplained.

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?

With 29% schema description coverage across 17 parameters, the description must carry the load but only clarifies ref sourcing and the notion of a semantic locator. It says nothing about nth, within scoping, button, modifiers, expect, snapshot mode, or session/pageId, leaving most parameters undocumented in both places.

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 names the two targeting strategies, including that refs come from browser_snapshot. It doesn't explicitly contrast with browser_double_click or browser_hover, but the single-click action and element-targeting scope are unambiguous.

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?

No when-to-use or when-not-to-use guidance: nothing tells the agent when to prefer click over double_click, check, hover, or press_key, nor what prerequisites exist (e.g., a prior snapshot to obtain refs). The only implied guidance is the targeting preference for refs, which comes largely from the schema's "preferred" note.

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