Skip to main content
Glama
puppeteer-mcp-claude

puppeteer-mcp-claude

by jaenster

puppeteer_click

Clicks an element matching a CSS selector in a Puppeteer-controlled Chromium page to trigger UI actions such as buttons, links, or menu items.

Instructions

Click an element matching the given CSS selector.

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": "puppeteer_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo
selectorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses very little. It does not say whether the click waits for the element, scrolls it into view, whether navigation triggered by the click is awaited, or what happens when the selector matches nothing or multiple nodes.

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 or redundant restatement of the name. It is efficient, though the brevity is partly the cause of the missing behavioral detail rather than a sign of completeness.

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 page-mutating interaction tool with no annotations, no output schema, and zero parameter documentation, the description is too thin. An agent cannot tell which page is affected, how failures surface, or what state the page is in after the click.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It clarifies that 'selector' is a CSS selector used to match an element, but 'pageId' is entirely undocumented — there is no indication of which page it targets or what the default is when omitted.

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 states a specific verb ('Click') and resource ('an element matching the given CSS selector'), so the action is unambiguous. It does not distinguish this tool from siblings like puppeteer_type or puppeteer_get_text, which also target a selector, leaving the agent to infer the boundary from names alone.

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, no mention of prerequisites such as the element needing to exist or be visible, and no reference to puppeteer_wait_for_selector as the alternative when the element may not be present yet. The agent gets the mechanics of the call but nothing about the conditions under which it should be chosen or avoided.

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