Skip to main content
Glama

safari_press_key

Presses a keyboard key in Safari, such as Enter, Tab, or arrows, with optional modifier keys (Cmd, Shift, Alt, Ctrl) to control logged-in browser sessions.

Instructions

Press a keyboard key (enter, tab, escape, arrows, etc). Supports modifiers (cmd, shift, alt, ctrl).

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": "safari_press_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesKey name: enter, tab, escape, space, delete, up, down, left, right, or a single character
whyNoOptional short purpose of this step, shown to the user in the cursor's status pill (e.g. 'to save the settings'). The page can read it: never put passwords, codes, card numbers or other private data in it.
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
modifiersNoModifier keys: cmd, shift, alt, ctrl

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?

With no annotations at all, the description carries the full behavioral burden and does little with it: it never says whether the page or an element must be focused first, what happens with an unrecognized key name, whether the action waits for effects, or that the call returns nothing. The only behavioral nuance (the 'why' being shown to the user and readable by the page) lives in the schema, not the description.

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 no wasted wording, front-loaded with the core action. It is efficiently written, though it is arguably too terse given the behavioral gaps.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple single-action input tool with a fully described schema and no output schema, the description covers the essentials plus a valuable warning that a receipt parameter is refused. Only focus/prerequisite behavior is missing, which is a modest gap rather than a blocking one.

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 100% and each parameter is well documented in the schema, so the baseline is 3. The description restates the key names and the modifier set already enumerated in the schema, adding no new meaning such as multi-key sequences or key-combination syntax.

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 concrete verb and resource ('Press a keyboard key') and enumerates representative key values, so the agent knows exactly what the tool does. It does not explicitly distinguish itself from input-oriented siblings like safari_fill or safari_clear_field, which keeps it from a 5.

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 gives no when-to-use or when-not-to-use guidance and names no alternatives, so an agent must infer that this is for discrete key presses rather than typing text into fields (safari_fill). The distinction between pressing keys and clicking or filling is left entirely to the sibling list.

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