Skip to main content
Glama

safari_fill

Fills or replaces values in input, textarea, select, and contenteditable fields, automatically handling React controlled inputs, ProseMirror, Draft.js, and Google Closure editors.

Instructions

Fill/replace value in an input, textarea, select, OR contenteditable (rich text). Handles React controlled inputs, ProseMirror, Draft.js, and Google Closure editors automatically. Use for SETTING a value (replaces existing). For code editors (Monaco/CodeMirror/Ace), use safari_replace_editor instead. For character-by-character typing in search boxes, use safari_type_text. IMPORTANT: When using ref, always take a FRESH safari_snapshot first — refs expire after each new snapshot (prefix changes: 5_xx → 6_xx).

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_fill"
  }
}

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.
valueYesValue to fill
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
selectorNoCSS selector

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does substantial work: it names the frameworks handled implicitly (React controlled inputs, ProseMirror, Draft.js, Google Closure) and warns about ref lifecycle — refs expire after each snapshot and the prefix changes (5_xx → 6_xx). It does not say whether the call verifies the value landed, what happens on a stale or missing ref, or what the response contains.

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?

The purpose and the SETTING-vs-typing distinction are front-loaded, and the two sibling routings are packed into single clauses with no filler. The trailing IMPORTANT sentence is longer and uses capitalization emphasis, which is slightly heavy-handed, but it carries the one constraint most likely to cause a failed call.

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

Completeness5/5

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

For a mutation tool with no annotations and no output schema, the description covers what matters: what it writes, which frameworks it handles, when to pick a sibling instead, and the snapshot/ref precondition. Return values are not described, but no output schema exists and the write semantics are unambiguous.

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 would be 3, but the description adds real meaning beyond the schema: the schema only says 'Ref ID from safari_snapshot', while the description explains that refs expire per snapshot and that prefixes shift between snapshots. That is an operational constraint the schema does not convey.

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 description opens with a specific verb and resource set: 'Fill/replace value in an input, textarea, select, OR contenteditable (rich text).' It explicitly contrasts itself with two named siblings (safari_replace_editor for code editors, safari_type_text for character typing), so the agent can separate it from alternatives 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?

It states the positive case ('Use for SETTING a value (replaces existing)') and two explicit exclusions with the routing condition for each: Monaco/CodeMirror/Ace go to safari_replace_editor, search-box typing goes to safari_type_text. A prerequisite is also given ('always take a FRESH safari_snapshot first').

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