Skip to main content
Glama

Click

click

Perform mouse actions on browser elements by ref, CSS selector, visible text, or coordinates. Uses trusted CDP input with DOM fallback and waits for navigation.

Instructions

Click an element by ref (preferred), CSS selector, visible text, or viewport coordinates. Uses trusted CDP input by default and falls back to DOM events. Waits for a navigation if one starts.

Input Schema

NameRequiredDescriptionDefault
xNoViewport X coordinate, if not using ref/selector/text.
yNo
refNo
textNoVisible text or accessible name to match.
humanNoMove the mouse along a human-like path. Default false (faster); set true only when a site needs human-like movement.
tabIdNo
buttonNoleft
frameIdNo
timeoutNo
trustedNotrue = real CDP input; false = DOM events.
selectorNo
exactTextNo
modifiersNo
waitUntilNodomcontentloaded
clickCountNo
delayAfterNo
switchToNewTabNo
detectNavigationMsNoHow long to watch for a navigation after the click. Default 700.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does meaningful work: it discloses the trusted-CDP-by-default behavior with DOM-event fallback and that the tool waits for navigation when one starts. It omits failure semantics (what happens if the element is not found or the action is blocked) and timeout/retry behavior, which keeps it short of a 5.

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?

Two tight sentences, front-loaded with the action and targeting options. Every clause carries information an agent can act on, and there is no filler.

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?

For a tool with no annotations, no output schema, and 18 parameters, the description covers the core behavioral contract but leaves notable gaps: nothing about the return value or error shape, nothing about how x/y must be supplied together, and no mention of the timing-related parameters.

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 only 28% across 18 parameters, so the description must compensate. It usefully explains the targeting hierarchy (ref > selector > text > coordinates) and the trusted/CDP fallback that maps to the 'trusted' param, but it leaves button, modifiers, clickCount, tabId, frameId, delayAfter, exactText, and switchToNewTab undocumented beyond the bare schema names.

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 (Click) and resource (an element), and enumerates the four targeting strategies with 'ref' marked preferred. It is unambiguous on its own, but it never distinguishes itself from near-neighbor siblings such as hover, drag, or select, so it falls short of the explicit sibling differentiation a 5 requires.

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?

'ref (preferred)' gives in-tool guidance for choosing among targeting modes, which is genuinely useful. However, there is no guidance on when to use click versus siblings like hover, drag, press, or evaluate, and no prerequisites or exclusion conditions are stated.

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