Skip to main content
Glama

page.press

Presses a key or keyboard chord on the active page or a targeted element to trigger browser actions, submit forms, or navigate interfaces.

Instructions

Press a key or chord, e.g. "Enter", "Escape", "Control+Shift+K".

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": "page.press"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
nthNoZero-based index when the locator matches several elements.
refNoSnapshot ref (eNN) from page.snapshot.
textNoVisible text of the element.
xpathNoXPath expression.
frame_idNoFrame to search within; see page.list_frames.
selectorNoCSS selector; pierces shadow DOM.
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
backend_node_idNoCDP backendNodeId, e.g. from inspector.pick.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

Annotations only say readOnlyHint=false and openWorldHint=true; the description adds no behavioral context about focus requirements, which element receives the event, whether trusted native events are dispatched, or what happens when a chord includes a modifier. For an input-dispatching tool with ten targeting parameters, that is a thin disclosure.

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?

A single front-loaded sentence with no filler, and the examples are the highest-value content in it. It is arguably too terse rather than bloated, so it loses a point only for what it omits, not for verbosity.

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?

With ten parameters, frame/browser/target targeting, and no output schema, the description leaves out how the locator parameters interact with the key press and what the tool returns on failure. The strong schema coverage carries most of the load, but a complex input tool warrants at least a note on focus and targeting.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

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

Schema coverage is 90%, so a baseline of 3 applies, and the description earns an upgrade by documenting the key string format as "Modifier+Modifier+Key" via the "Control+Shift+K" example — something the bare `key: string` schema entry does not convey. The targeting parameters (ref, selector, target_id) remain documented only in the schema.

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?

"Press a key or chord" names a specific verb and resource, and the examples ("Enter", "Escape", "Control+Shift+K") make the resource concrete. It is reasonably distinguishable from page.type and page.long_press, but the description never names those siblings to make the distinction explicit.

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 when-to-use guidance: nothing says whether focus must already be on an element, when to prefer this over page.type or page.long_press, or whether a target selector is needed for keys to reach the right element. The key-format examples hint at syntax but not at invocation conditions.

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

Deploy Server

Other Tools