Skip to main content
Glama

safari_type_text

Types text character by character with real key events so search boxes trigger autocomplete and chat or form fields that react to each keystroke update correctly.

Instructions

Type text character-by-character with realistic key events. Best for: search boxes (triggers autocomplete), chat inputs, and fields that react to each keystroke. For rich text editors (Medium, HackerNoon, LinkedIn), use safari_fill instead — it uses framework-native APIs. For code editors (Monaco/CodeMirror), use safari_replace_editor. When using ref, always take a FRESH safari_snapshot first — refs expire after each new snapshot.

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": {
      "text": "<text>"
    },
    "name": "safari_type_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoRef ID from safari_snapshot
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.
textYesText to type
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
selectorNoCSS selector to focus

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden and does substantial work: it discloses that keystrokes are synthetic and character-by-character, that this triggers autocomplete and per-keystroke handlers, and that refs expire after each new snapshot. It stops short of stating whether existing field content is appended to or replaced, and whether the target must already be focused when selector is omitted.

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-loaded with the core mechanism, then progressively narrower guidance (good fits, then two named alternatives, then the ref caveat). Every sentence is functional, though the alternatives block plus the ref warning makes it longer than typical and could be tightened slightly without losing content.

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?

With no annotations and no output schema, the description adequately covers mechanism, selection criteria, and the ref-freshness constraint for a 5-parameter tool. The notable residual gap is append-versus-replace semantics and focus behavior, which affect whether a call produces correct results.

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 100%, so the baseline is 3, but the description adds real meaning the schema lacks: ref has a lifecycle (expires after every new snapshot) and a required companion action (fresh safari_snapshot). It does not clarify the interaction between ref and selector as targeting alternatives, which is the remaining ambiguity.

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 and resource — 'Type text character-by-character with realistic key events' — which pins down both the operation and its mechanism. Immediately distinguishable from the named siblings safari_fill and safari_replace_editor, so an agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit positive cases (search boxes with autocomplete, chat inputs, per-keystroke fields) and explicit negative cases with the correct alternative for each: safari_fill for rich text editors, safari_replace_editor for Monaco/CodeMirror. It also states a prerequisite — take a fresh safari_snapshot before using ref — which is the main usage failure mode.

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