playwright__click
[Playwright Browser] Click an element matched by CSS selector or visible text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| button | No | left | |
| selector | No | ||
| double_click | No |
[Playwright Browser] Click an element matched by CSS selector or visible text.
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| button | No | left | |
| selector | No | ||
| double_click | No |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already indicate readOnlyHint=false (mutation) and openWorldHint=true. The description states 'click', which confirms mutation. However, it does not disclose details like element visibility requirements, timeout behavior, or failure handling. The added behavioral context is minimal given the annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence, front-loaded with '[Playwright Browser]' for context. It is concise and avoids fluff, but could be restructured to list parameters or conditions without adding length.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple click tool with 4 parameters, the description is partially complete. It covers the primary functionality but omits how to choose between selector/text, the meaning of button options, and double_click behavior. The lack of output schema reduces the need for return value documentation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 0% schema description coverage, the description must compensate. It mentions matching by CSS selector or visible text, implying the 'selector' and 'text' parameters, but does not explain their precedence or interaction. The 'button' and 'double_click' parameters are completely undescribed, leaving the agent with no guidance on their values or behavior.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'click' and the resource 'element', and specifies the matching methods: 'CSS selector or visible text'. It effectively distinguishes from sibling tools like playwright__fill_form or playwright__select_option by focusing on clicking.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for clicking elements but provides no explicit when-to-use or when-not-to-use guidance compared to alternatives. Sibling tools like playwright__type_text and playwright__select_option exist, but no differentiation is mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.