Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

browser_press_key

Presses keys like Enter, Escape, Tab, or shortcuts such as Control+A on the focused page element to trigger actions, submit forms, navigate, or test keyboard interactions in a real browser.

Instructions

Press keys on the focused element: "Enter", "Escape", "Tab", "ArrowDown", "Control+A", "Meta+Shift+K". Space-separate to press several in order.

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
keyYes
tabIdNoTab to act on. Defaults to the tab last opened/selected by an agent, else the active tab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

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 must carry the behavioral load. It does disclose two meaningful traits: keys are dispatched to the focused element rather than a specified one, and space-separated keys are executed in order. It omits what happens when nothing is focused, whether modifier combos are synthesized as separate down/up events, and what is returned or how failures surface.

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?

Two short sentences, front-loaded with the action and the accepted value format, with no filler. The sequencing rule is appended only after the examples, which is the right order.

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 no annotations and no output schema, the description covers the key format well but leaves an agent guessing about focus preconditions and error behavior. Adequate to call it, not quite enough to call it correctly in edge cases.

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 50% and tabId is documented in the schema, so the description's job is the 'key' parameter. It contributes real value there: example key names ('Enter', 'Escape', 'Control+A', 'Meta+Shift+K') and the space-separated sequence syntax, neither of which appears in the schema. It stops short of saying whether the listed names are exhaustive or case-sensitive, so it does not fully compensate for the coverage gap.

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: pressing keys on the focused element, with concrete key-name examples. It implicitly separates itself from text entry (browser_type) by framing this as discrete key presses on whatever element currently has focus, but it never names or contrasts the sibling.

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?

Usage is only implied: 'on the focused element' suggests the agent must first focus something (via click, tab, or type) before pressing. There is no explicit when-to-use versus browser_type/browser_click, no guidance for the no-focus case, and no stated prerequisites.

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