Skip to main content
Glama

click

Activates page elements by snapshot reference, label, or role and accessible name to trigger buttons, links, and controls during browser automation.

Instructions

Click an element identified by a snapshot reference, a label, or a role and accessible name.

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": {
      "pageId": "<pageId>",
      "selector": "<selector>"
    },
    "name": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYes
optionsNo
selectorYes
sessionIdNoBrowser session ID. Defaults to 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/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, and it discloses almost nothing: it does not say what happens when the element is not actionable, that Playwright actionability checks gate the click and can be bypassed with force, that the call may wait for navigation unless noWaitAfter is set, or what a failure looks like. For an interactive mutation tool with a dozen nested options, this is a substantial gap.

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 and the resource and selector strategies stated up front. It is efficient, though the phrase 'a role and accessible name' compresses two coupled fields into a conjunction that reads slightly loosely.

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?

With no annotations, no output schema, nested option objects, and only 25% schema coverage, the description should do more than enumerate selector forms. It omits prerequisites (a live page/session, a current snapshot for refs), error and actionability behavior, and any indication of what a successful click returns.

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 only 25% at the top level, but the nested schema is highly self-documenting for the options and sessionId objects. The description does add genuine meaning by clarifying that selector can be satisfied three different ways (ref, label, role+name), which is not obvious from the oneOf keys alone. It says nothing about pageId, the freshest-snapshot requirement for refs, or when force/trial matter.

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 names a specific verb (click) and resource (element) and enumerates the three addressing modes (snapshot ref, label, role + accessible name), which maps directly onto the selector oneOf in the schema. An agent can distinguish it from fill, select-option, or set-checked by the verb alone. It stops short of explicitly contrasting with those siblings.

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 guidance: nothing says to prefer set-checked for checkboxes, select-option for dropdowns, or fill for text inputs, all of which are listed siblings. There is also no stated prerequisite that a ref-based click requires a fresh snapshotId from get-page-snapshot; that hint exists only in the schema, not in the description.

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