Skip to main content
Glama
browser-stream

browser-stream

by sgreen7979

browser_press_key

Simulates pressing a key or key combination in the browser and returns the resulting action consequences, so you can trigger shortcuts or confirm key-driven interactions.

Instructions

Press a key or key combination. Returns action consequences.

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": {
      "key": "<key>"
    },
    "name": "browser_press_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesKey or combo, e.g. "Enter", "Control+a"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden, and "Returns action consequences" is too vague to be actionable — it doesn't say whether DOM events fire, whether focus is required, or what the response contains. It also omits any note about the page-state side effects a keypress may cause.

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?

Two short sentences, with the core action front-loaded and no filler. The second sentence is of low informational value but does not bloat the definition.

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 one-parameter tool the action itself is adequately described, but with no annotations and no output schema, the undefined "action consequences" return promise leaves the agent guessing about results and preconditions. Borderline 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?

The single parameter has 100% schema description coverage including concrete examples ("Enter", "Control+a"), so the schema does the heavy lifting. The description's "key or key combination" merely restates the schema and adds no syntax or modifier-ordering detail.

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 and resource ("Press a key or key combination"), which clearly separates it from siblings like browser_click or browser_fill. It does not explicitly name when a sibling is the better choice, but the keyboard-input framing is unambiguous.

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 versus browser_fill (typing text) or browser_click, nor any mention of preconditions such as the page needing to be loaded or an element needing focus. The agent must infer all usage context from the name alone.

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