Skip to main content
Glama

Browser Press Key

browser_press_key

Press keys such as Enter, Escape, Tab, ArrowDown, or Control+a to trigger browser actions and shortcuts during automated web tasks.

Instructions

Press a key (e.g. Enter, Escape, Tab, ArrowDown, Control+a).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
tabNo
sessionNodefault

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, but it only restates the basic action. It does not disclose where the key event is sent, whether it can trigger navigation or form submission, whether modifier combinations like 'Control+a' are supported as written, or whether the page must be focused.

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 useful key examples and no wasted words. It is appropriately concise for the action it names.

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?

For a browser automation tool with three parameters, no annotations, and 0% schema coverage, this description is too sparse. It lacks essential context about target focus, accepted key syntax, modifier behavior, and the meaning of tab/session, so an agent may invoke it incorrectly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, but it only adds meaning for 'key' through examples. The 'tab' and 'session' parameters are completely unexplained, leaving the agent to guess how to target a specific tab or session.

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 ('Press') and the resource ('a key'), with concrete examples (Enter, Escape, Tab, ArrowDown, Control+a) that make the keyboard nature unmistakable. This distinguishes it from the many mouse-oriented siblings like browser_click and browser_fill.

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 use this tool versus alternatives such as browser_click_text, browser_fill, or browser_hover. It does not mention focus requirements, page state, or scenarios where a key press is the appropriate interaction.

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