Skip to main content
Glama
BrowserGenie

BrowserGenie MCP Server

by BrowserGenie

press_key

Press a single keyboard key, including special keys and modifiers. Optionally focus an element with a CSS or XPath selector before pressing.

Instructions

Press a single keyboard key with optional modifiers. Use this for special keys: Enter, Tab, Escape, arrows, function keys, or keyboard shortcuts. Does NOT type text - use type_text for that.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesKey name: "Enter", "Tab", "Escape", "Backspace", "ArrowUp/Down/Left/Right", "a", "F1-F12"
modifiersNoModifier keys to hold (e.g., ["Control"] for Ctrl+C). Use Meta for Command on Mac.
selectorNoCSS/XPath selector to focus before pressing key - use this to avoid needing to click first
selectorTypeNoSelector type: "css" (default) or "xpath"
tabIdNoTarget tab ID (defaults to active tab)
apiKeyNoAPI key for authentication if enabled
Behavior3/5

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

With no annotations, the description carries full burden. It describes the action but does not detail side effects, error handling, or behavior when key fails. It is adequate but could be more transparent about execution details.

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 sentences, front-loaded with the main action, and includes essential guidance. Every sentence adds value with no waste.

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 6-parameter tool with no output schema, the description covers the core action but does not explain the purpose of selector, tabId, or apiKey parameters. The schema covers them, but additional context would improve 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?

Schema coverage is 100%, so baseline is 3. The description adds minimal value beyond the schema, only reinforcing that keys are individual and not text. It does not clarify optional parameters like selector or tabId.

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 'press a single keyboard key with optional modifiers' and distinguishes it from typing text by referencing sibling tool 'type_text'. It lists specific special keys, making the purpose unambiguous.

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

Usage Guidelines5/5

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

The description explicitly says when to use the tool (for special keys, keyboard shortcuts) and when not to use it ('Does NOT type text - use type_text for that'), providing clear guidance on alternatives.

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/BrowserGenie/mcp'

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