Skip to main content
Glama
playwright-ui-mcp

playwright-ui-mcp

by ailabs-393

browser_click

Clicks a specified page element using a CSS selector in a Playwright-controlled browser to perform UI interactions and visual verification.

Instructions

Click on an element in the page

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

Input Schema

NameRequiredDescriptionDefault
pageIdYesThe page ID
selectorYesCSS selector of the element to click

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full disclosure burden and does not carry it. It says nothing about whether the click auto-waits for the element, scrolls it into view, what happens if the selector matches nothing, or whether a click can trigger navigation — all behaviors an agent must anticipate before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single sentence with no wasted words, which is good for front-loading the action. But it is terse to the point of under-specification for an interactive tool, so brevity here trades away usefulness rather than earning its place.

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, and an interaction that mutates page state, the definition should cover failure behavior and post-click effects. It covers only the bare action, leaving an agent unable to predict errors or side effects such as navigation.

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%, with both pageId and selector documented inline, so the baseline is 3. The description adds no extra meaning about selector resolution (e.g., first match vs. strict matching) beyond what the schema states.

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 gives a specific verb and resource ('Click on an element in the page'), so the action is unambiguous. However, it does not differentiate itself from siblings like browser_type or browser_wait_for, which also act on page elements, so the agent must infer the split 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 guidance on when to prefer this over browser_type, browser_wait_for, or browser_evaluate, and no stated preconditions such as requiring the element to be visible or the page already navigated. The agent gets an action but no selection criteria.

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