Skip to main content
Glama

safari_native_type

Insert real text input into Safari fields and rich editors in the background so React, ProseMirror, Slate, and Draft.js update their internal state, letting form submissions work.

Instructions

Insert text as real input, in the background (Safari is never activated, the clipboard is untouched). Inputs and textareas get it through the macOS accessibility tree (isTrusted beforeinput/input, any language); rich editors (contenteditable) and cross-origin frames get key events that carry the text, posted to Safari (the agent's window must be Safari's front window; the field is read back, and text that did not arrive is reported). Unlike safari_fill which manipulates DOM directly (breaking React/ProseMirror state), this is real input — ProseMirror/Slate/Draft.js process it natively and update their internal model. After native_type, pressing Enter (via safari_native_keyboard) will actually submit the form because the framework state matches the DOM. No focus stealing. Use for Discord, Slack, and any editor where safari_fill works visually but the content isn't 'really there' when you try to submit.

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": {
      "value": "<value>"
    },
    "name": "safari_native_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoRef ID from safari_snapshot to focus first
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.
valueYesText to insert as real input
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
selectorNoCSS selector of the editor element to focus first

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: it discloses the background/no-activation and untouched-clipboard guarantees, the two different input mechanisms (accessibility tree vs key events into cross-origin frames), the precondition that the agent's window must be Safari's front window for key events, and that unconsumed text is read back and reported as failure.

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?

Core mechanism and the safari_fill contrast are front-loaded, and nearly every sentence earns its place by adding a mechanism, a guarantee, or a precondition. The nested parentheticals make it dense and one very long sentence carries three separate facts, which slightly hurts scanability.

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 mutation-ish input tool with no annotations and no output schema, the description covers safety guarantees, preconditions, failure reporting, and follow-up steps well. It leaves out whether the call waits for the read-back or how long it takes, and doesn't mention the ref parameter used to focus an editor, which the snapshot sibling supplies.

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 per-parameter meaning is already documented, and the description adds behavioral context about how the value arrives. It does not itself clarify ref vs selector ordering or the 'receipt' refusal parameter, so it adds less than a full 5.

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?

The first clause gives a specific verb and resource ('Insert text as real input, in the background') and immediately contrasts it with the sibling safari_fill ('manipulates DOM directly'), so an agent can tell them apart without opening either 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?

It names the alternative (safari_fill), explains exactly why and when it fails ('works visually but the content isn't really there when you try to submit'), and gives concrete target sites (Discord, Slack, rich editors). It also situates the follow-up step: Enter via safari_native_keyboard will submit because framework state matches the DOM.

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