Skip to main content
Glama

browser_click

Destructive

Clicks the first element matching a CSS selector, scrolling it into view and waiting until it is clickable; use coordinates from a snapshot when no selector fits.

Instructions

Click the first element matching a CSS selector.

Scrolls it into view and waits for it to be clickable. When no selector can describe the target, use browser_click_at with coordinates from browser_snapshot. Inside an iframe, pass the snapshot's frame too.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "selector": "<selector>"
    },
    "name": "browser_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
frameNo
browserNoDefaults to `main`; `support` is the helper beside it.
selectorYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.74.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and readOnlyHint=false, but the description adds non-obvious execution behavior: it scrolls the element into view and waits until it is clickable, and it clicks only the first match rather than all matches. It stops short of the failure mode (what happens if nothing matches, e.g. timeout vs. error), which is the one gap for a click tool.

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?

Three short sentences, front-loaded with the core action, then the fallback, then the iframe caveat. No filler or restated annotation text.

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?

Output schema exists, so return values need not be explained; the description covers the action, the auto-wait behavior, the coordinate-based alternative, and iframe handling. Only the no-match failure behavior and the `frame` value structure are left unstated on this 3-parameter tool.

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 33%: only `browser` is documented in the schema, so the description must carry `selector` and `frame`. It addresses `frame` by telling the agent to pass the snapshot's frame and implies `selector` is CSS, but never explains the array-of-strings shape `frame` expects or what an empty list means. Useful but partial compensation for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Click the first element matching a CSS selector" gives a specific verb, resource, and match semantics (first match only), which an agent can hold apart from browser_click_at without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing: when no selector can describe the target, use browser_click_at with coordinates from browser_snapshot. It also states the iframe condition (pass the snapshot's `frame`), so both the alternative and the prerequisite are named.

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