Skip to main content
Glama

browser_click

Clicks page elements by Playwright selector, such as text, CSS ID, or ARIA role, to trigger buttons, links, and controls during browser automation.

Instructions

Klik elemen memakai selector Playwright (contoh: "text=Produk", "#submit", "role=button[name="Beli"]").

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
buttonNo
selectorYesSelector Playwright
timeoutMsNo
clickCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it says nothing about what a click triggers (navigation, async waits), how failures or unresolved selectors surface, or that the operation is a state-changing interaction. Only the selector format is disclosed; the timeout and click-count semantics are entirely absent.

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?

A single front-loaded sentence with no filler; the parenthetical example does real work by teaching selector syntax. It is efficient, though it stops short of offering anything beyond that one clause.

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 4-parameter mutation-adjacent tool with no annotations and no output schema, the description is too thin: it never explains what clicking returns or triggers, nor the units/effects of timeoutMs and clickCount. An agent can guess it clicks, but not how to use it reliably.

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 25%, so the description must compensate. It does add real value for the required selector parameter by showing valid Playwright syntax ("text=Produk", "#submit", role= selectors), but button, timeoutMs, and clickCount remain undocumented in both schema and description.

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?

"Klik elemen" plus a concrete resource (a Playwright selector) states a specific verb and target, and the three selector examples make the intent unambiguous. It does not distinguish itself from siblings such as browser_integrated_click or browser_type, which keeps it below a 5.

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?

There is no when-to-use or when-not guidance: nothing tells the agent when to prefer this over browser_integrated_click, browser_type, or browser_press_key. The example syntax implies usage but never states a selection rule or prerequisite (e.g. a loaded page).

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