Skip to main content
Glama

Click Element

browser_click

Clicks a visible page element by CSS or Playwright selector or by an accessible locator, such as role with name, label, placeholder, or text.

Instructions

Click a visible element using a CSS/Playwright selector or accessible locator (role+name, label, placeholder, or text).

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
nameNoAccessible name used together with `role`
roleNoARIA role for accessible targeting (e.g. "button", "link", "textbox")
textNoVisible text content to match
exactNoWhether text/name/label matching must be exact
labelNoForm label text associated with the element
task_idNoOptional task ID for execution tracking and cancellation
selectorNoCSS or Playwright selector (e.g. "button.submit", "#search")
timeoutMsNoBounded wait timeout in milliseconds (500-60000)
session_idNoOptional target browser session ID (defaults to active default session)
placeholderNoInput placeholder text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), so the description need only add context beyond that. It contributes the visibility requirement, which is useful, but says nothing about failure behavior (element not found, timeout expiry), whether it auto-scrolls or auto-waits, or what is returned on success – meaningful gaps for an interaction 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?

One sentence, front-loaded with the action, with each clause carrying distinct information about targeting modes. There is no filler or repetition.

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?

With ten optional parameters, no required fields, and no output schema, an agent needs to know how to combine locator parameters and what happens on non-match or timeout. The description covers the what but not the operational how, leaving the definition adequate rather than complete.

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 ten parameters already carry their own documentation, and the baseline of 3 applies. The description restates the locator vocabulary that the schema's role/name/label/placeholder/selector fields already describe, adding no preference order or disambiguation rules beyond what is structured.

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?

A specific verb (click) plus the resource (visible element) and the acceptable targeting mechanisms (CSS/Playwright selector or accessible locator with role+name, label, placeholder, or text). It is clear on its own, but it never distinguishes itself from siblings like browser_action or native_chrome_action, which an agent could plausibly choose for the same click operation.

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?

The phrase 'click a visible element' implies the preconditions (the target must be visible/present), which is modest guidance. There is no explicit when-to-use-vs-alternatives statement, no exclusion of browser_action or browser_type, and no guidance on which locator strategy to prefer when several are available.

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