Skip to main content
Glama
DanEvenSegler

Extended Playwright MCP Server

browser_clear_input

Destructive

Clears text from input fields and textareas using snapshot ID or CSS selector. Removes existing content to allow new input.

Instructions

Clears the text in an input or textarea element.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesInput element reference (snapshot ID) or CSS selector.
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false. The description adds that it specifically clears text in input/textarea elements, matching the destructive hint. However, it doesn't disclose behavioral details such as whether clearing triggers input events, requires focus, or what happens if the target isn't an input/textarea.

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?

The description is a single, front-loaded sentence with no unnecessary words. It efficiently conveys the action and target element type, earning a full score for conciseness and structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter mutation tool with annotations and no output schema, the description covers the core behavior. However, it lacks any note about return values, behavior on invalid targets, or whether events are triggered, leaving a minor gap in completeness.

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?

The input schema provides full coverage for the single 'target' parameter, describing it as 'Input element reference (snapshot ID) or CSS selector.' The tool description adds no extra parameter semantics, but since schema coverage is 100%, a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Clears the text in an input or textarea element.' It uses a specific verb ('clears') and names the resource ('input or textarea element'), which distinguishes it from sibling tools like browser_type that enter text into elements.

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?

The description provides no explicit guidance on when to use this tool versus alternatives. It implies usage for clearing input/textarea content but doesn't mention exclusions or direct the agent to alternative tools for related actions, such as selecting all or deleting text via keyboard.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DanEvenSegler/extended-playwright-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server