Skip to main content
Glama

browser_click

Click elements in a local browser to trigger actions and move workflows forward. Target elements by snapshot ref, CSS selector, or viewport x/y coordinates.

Instructions

Click an element in the local browser using a ref from browser_snapshot, a CSS selector, or viewport x/y coordinates.

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
xNoViewport X coordinate in CSS pixels (pair with y).
yNoViewport Y coordinate in CSS pixels (pair with x).
refNoRef number from the latest browser_snapshot.
tab_idNoTarget tab id.
selectorNoCSS selector to click.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/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 for a mutating, side-effect-heavy operation. It does not disclose whether the click waits for navigation, whether it errors or returns a failure indication when the target is missing or obscured, or what side effects (form submission, downloads) may follow. Only 'local browser' adds any real context.

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 front-loaded sentence with no filler; the action and the three targeting options arrive immediately and nothing is wasted.

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 five-parameter tool with no required fields, no annotations, and no output schema, the description covers the key selection question of how to identify the target. The remaining gap is behavioral: outcome, error handling, and execution timing are unaddressed, which matters for a click that can trigger navigation.

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 coverage is 100%, so the schema already documents x, y, ref, tab_id, and selector individually. The description adds the useful framing that these are alternative targeting modes joined by 'or', but it does not state whether exactly one must be supplied or how conflicts between ref and selector are resolved.

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 states a specific verb (click) and resource (an element in the local browser), and enumerates the three targeting mechanisms: a ref from browser_snapshot, a CSS selector, or viewport x/y coordinates. That is enough to distinguish it from siblings like browser_type or browser_snapshot, though it does not explicitly contrast with them.

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 implied by the action itself (click an element), and it helpfully points to browser_snapshot as the source of valid refs. It never states prerequisites, when not to use it, or what to do instead when a click fails or when an element needs scrolling into view first.

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