Skip to main content
Glama
ZenRows
by ZenRows

browser_press_key

Press a keyboard key in an active browser session to submit forms, navigate menus, or trigger shortcuts like Control+A.

Instructions

Press a keyboard key. Examples: "Enter", "Tab", "Escape", "ArrowDown", "Control+a".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesKey to press (e.g. "Enter", "Tab", "Escape", "ArrowDown", "Control+a")
session_idYesSession ID returned by browser_navigate

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.7.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. Beyond that the description adds no behavioral context: no mention of focus requirements, whether the key is dispatched to the page or the browser chrome, or any side effects such as form submission on Enter.

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, front-loaded with the action. It is efficiently sized, though the example enumeration is verbatim duplication of the schema and earns little of its space.

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 two-parameter tool with full schema coverage and safety annotations, the definition is minimally adequate. It leaves a real gap by not stating that the key is delivered to the focused element or noting modifier-combo syntax beyond the schema examples.

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%, with both session_id and key documented inline, so the baseline is 3. The description's example list merely repeats the identical examples already present in the key property description, adding no new meaning.

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 keyboard key'), which is unambiguous and distinct from the click/type/fill siblings. However, it does not draw the boundary against browser_type or browser_fill, so the agent must infer the difference itself.

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?

The description only supplies example key strings; it never says when to use this tool rather than browser_type, browser_fill, or browser_click, nor does it mention that a key event is sent to the currently focused element. Usage must be inferred entirely from the tool name.

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