Skip to main content
Glama

browser_press_key

Send a key or key combination (CTRL/ALT/SHIFT) to a visible enabled page element to trigger navigation, form submission, or legacy control actions; file inputs are excluded.

Instructions

Send a key to a fresh visible enabled reference, excluding file inputs. key: ENTER, TAB, ESCAPE, BACKSPACE, DELETE, SPACE, ARROW_UP/DOWN/LEFT/RIGHT, HOME, END, PAGE_UP/DOWN, or one printable character. Optional unique CONTROL/ALT/SHIFT modifiers. May submit forms; no retry.

Input Schema

NameRequiredDescriptionDefault
keyYes
refYes
modifiersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations the description carries the full burden, and it does disclose two valuable traits: it 'may submit forms' (a side effect) and it has 'no retry.' It stops short of describing return behavior, focus prerequisites, or failure modes, leaving meaningful gaps for a keyboard-mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense and front-loaded: purpose first, then key vocabulary, then modifiers, then the side-effect/no-retry warnings. Every clause carries information; it is terse but not padded.

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

Completeness3/5

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

For a 3-param tool with no annotations, no output schema, and 0% schema coverage, it covers the essentials (purpose, key set, modifiers, form side effect, no retry). It still omits return behavior and precise focus/ref semantics, so it is adequate rather than complete.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate and largely does: it enumerates valid `key` values plus the single-printable-character rule, and explains `modifiers` (unique CONTROL/ALT/SHIFT). `ref` is characterized as a fresh/visible/enabled reference, adding meaning, though the reference format itself remains unstated.

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?

States a specific verb (send a key) and resource (a key to an element reference), plus target constraints: fresh, visible, enabled, excluding file inputs. This differentiates it reasonably from browser_fill (text) and browser_click, though it never names a sibling explicitly.

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?

Implied usage is clear (keyboard input to a focused element), and 'excluding file inputs' plus the visible/enabled requirement give applicability cues. But it never says when to prefer this over browser_fill or browser_click, nor names alternatives.

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