Skip to main content
Glama

Press keys

press

Sends single keys or key chords to the Chromaphore browser, with optional repetition and focus validation, to trigger shortcuts, navigate, and complete form actions.

Instructions

Presses a key or a chord: Enter, Escape, Tab, ArrowDown, Ctrl+A, Shift+Tab, Ctrl+Shift+Left, F5. The key is a named key or one ASCII character; type other characters with type. With times, again and again as a person does.

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": {
      "keys": "<keys>"
    },
    "name": "press"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysYes
quietNoAnswer without the changed elements (what opened on top, the focus and announcements stay); for pages such as Google Docs where every key changes much of the listing.
timesNo
expect_focusNoSend nothing unless this element has the keyboard focus right before the first key (in Google Docs, the "Document content" textbox); a refusal names what has the focus. On a Chromaphore newer than release 2.0.0, type also stops when the focus leaves it midway and says what went out; older builds check once and cannot read a frame of another site or origin.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.2
    • addedInput schema / additionalProperties
      Added value: +{}
    • addedInput schema / properties / expect_focus
      Added value: +{
      +  "description": "Send nothing unless this element has the keyboard focus right before the first key (in Google Docs, the \"Document content\" textbox); a refusal names what has the focus. On a Chromaphore newer than release 2.0.0, type also stops when the focus leaves it midway and says what went out; older builds check once and cannot read a frame of another site or origin.",
      +  "type": "string"
      +}
    • addedInput schema / properties / quiet
      Added value: +{
      +  "description": "Answer without the changed elements (what opened on top, the focus and announcements stay); for pages such as Google Docs where every key changes much of the listing.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / times / maximum
      Previous value: -20New value: +50
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It implies realistic key events ('again and again as a person does') but says nothing about required focus, what happens when the focus is elsewhere (refusal behavior documented only in the schema), what the response contains, or the side effects of chords like Ctrl+A.

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?

Front-loads the action and the example set, then closes with the less common repeat case. Dense but every clause carries information; the phrasing 'again and again as a person does' is slightly loose but conveys that discrete key events are emitted.

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 an input-only tool with no annotations and no output schema, the definition covers the core invocation well but omits outcome/return behavior and focus prerequisites at the description level. Adequate but with clear gaps for a tool that can trigger irreversible page actions.

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 only 50%, but the description compensates well for the two most important parameters: it defines `keys` syntax (named key vs one ASCII character, chord notation) and explains that `times` repeats the press. It leaves `quiet` and `expect_focus` to the schema, which does describe them.

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 (presses) and resource (key or chord), then lists concrete examples spanning named keys, single characters, and multi-modifier chords. It also explicitly distinguishes itself from the sibling 'type' tool for non-key characters.

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?

Gives an explicit routing rule: named keys and single ASCII characters go here, 'type other characters with type.' It also explains the repeat semantics of `times`. It does not compare against click/select/fill_date for broader interaction workflows, but the key alternative is named.

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