Skip to main content
Glama
ChristofMilius

mcp-agent-playwright

browser_press_key

Press a keyboard key on a web page, such as Enter, Tab, Escape, ArrowDown, Backspace, F5, or a single character, to trigger keyboard actions during browser automation.

Instructions

Press a keyboard key on the page. For Enter after typing use browser_type(..., enter=True).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesKey name: Enter, Tab, Escape, ArrowDown, Backspace, F5, or a single char.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does not mention whether the key press targets the currently focused element, whether it can trigger navigation or other side effects, or any error behavior. This is a significant gap for a tool with zero annotation coverage.

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 two concise sentences. The primary action is front-loaded, and the alternative guidance is valuable without redundancy. Every word earns its place.

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 tool with an output schema, the description covers the essential action and provides a key usage distinction. It lacks a few behavioral details (e.g., focus requirement, side effects), but it is largely sufficient given the tool's simplicity.

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 schema already documents the 'key' parameter thoroughly, listing named keys and single characters. The description adds no additional meaning beyond the schema. With 100% schema coverage, the 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 action with a specific verb and resource ('Press a keyboard key on the page'). It explicitly differentiates from the sibling tool browser_type by noting that Enter after typing should use browser_type(..., enter=True), which helps the agent distinguish between the two tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides an explicit when-not-to-use instruction: for Enter after typing, use browser_type instead. This gives clear guidance for one common scenario, though it does not mention other alternatives or general when-to-use criteria beyond the core action.

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