Skip to main content
Glama
sumyapp
by sumyapp

browser_press_key

Press any key or type a character in a browser session to simulate user input and trigger web interactions.

Instructions

Press a key on the keyboard

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesName of the key to press or a character to generate, such as `ArrowLeft` or `a`
sessionIdYesThe session ID to use for this operation
Behavior1/5

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

With no annotations, the description carries full responsibility for disclosing behavior. It only restates the tool's name ('Press a key') without detailing side effects, such as whether a keydown/keyup event is dispatched, whether it requires focus on a specific element, or what the return value is. This is essentially a tautology with no added information.

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?

The description is very concise and easy to read, but it does not earn its place because it essentially repeats the tool name without adding useful context. It is not overly verbose, but it is under-specified rather than efficiently informative.

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?

The tool has no output schema and no annotations, leaving the description as the sole source of context. It fails to explain what happens after pressing a key, the return value, or any prerequisites (e.g., active session). For a simple action tool, this is insufficient to guide an agent.

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 already provides complete descriptions for both parameters (`key` and `sessionId`), so schema coverage is 100%. The description adds no additional parameter semantics beyond what the schema already states, which matches the baseline of 3.

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 'Press a key on the keyboard' clearly identifies the action (pressing a key) and the resource (keyboard). However, it does not explicitly distinguish itself from sibling tools like `browser_type` or `browser_click`, which also involve keyboard input.

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?

No guidance is provided about when to use this tool versus alternatives such as `browser_type` or `browser_click`. The description offers no context, exclusions, or alternative tool references.

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/sumyapp/playwright-parallel-mcp'

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