Skip to main content
Glama
mcp-server-visual-stack-browser

mcp-server-visual-stack-browser

by cadivus

press_key

Simulate keyboard input by pressing keys or key combinations, such as Enter, Tab, Escape, or Control+c, in an active browser session to trigger shortcuts and navigation.

Instructions

Press a key or key combination. Supports special keys like Enter, Backspace, Tab, Escape, ArrowUp, etc. For key combinations, use '+' as separator: 'Control+c', 'Control+Shift+a', 'Meta+v' (Cmd on Mac). Common keys: Enter, Backspace, Delete, Tab, Escape, ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Home, End, PageUp, PageDown, F1-F12, Control, Shift, Alt, Meta. For single printable characters, prefer type_text instead.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session_id": "<session_id>",
      "key": "<key>"
    },
    "name": "press_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe key or key combination to press. Examples: 'Enter', 'Backspace', 'Tab', 'Escape', 'Control+a', 'Control+c', 'Control+v', 'Meta+a' (Cmd+A on Mac), 'Shift+ArrowRight', 'Control+Shift+k'. Uses Playwright key names.
countNoNumber of times to press the key (default: 1).
session_idYesSession ID from start_browser.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses supported key vocabulary, the '+' combination syntax, Playwright naming, and repeat behavior via count, but says nothing about what happens on an invalid key name, whether focus must be established first, or whether events are dispatched to the page or a specific element.

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 opening sentence and the type_text routing are front-loaded and useful. However, the special-key list and the 'Common keys' list substantially overlap (Enter, Backspace, Tab, Escape, arrows appear twice), which is redundant wording that could be collapsed.

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 three-parameter input tool with no output schema and no annotations, the description covers syntax well but omits failure modes and focus/target requirements an agent needs to invoke it reliably. 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.

Parameters3/5

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

Schema description coverage is 100%, so all three parameters are already documented with examples. The description adds the supported-key enumeration and the '+' separator rule, but the schema's key examples already demonstrate that syntax, so the added meaning is marginal.

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?

States a specific verb and resource ('Press a key or key combination') and immediately scopes it to special keys and combos. It also names the sibling it is not for (type_text), so an agent can distinguish it without opening the schema.

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?

Explicitly routes single printable characters to type_text, which is a real when-to-use boundary. There is no guidance on prerequisites such as a focused element or active page, and no other exclusions, so it falls short of the full alternative coverage a 5 requires.

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