Skip to main content
Glama

safari_fill

Set values in web form fields including inputs, textareas, selects, and rich text editors. Handles React, ProseMirror, Draft.js, and Google Closure editors automatically for browser automation tasks.

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).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoRef ID from safari_snapshot
selectorNoCSS selector
valueYesValue to fill
Behavior5/5

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

No annotations provided, but description carries full burden excellently: discloses handling of React controlled inputs/ProseMirror/Draft.js, clarifies replacement behavior ('replaces existing'), and warns about ref expiration after snapshots (prefix changes detail).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with logical flow: core function → special capabilities (React editors) → usage intent → alternatives → critical warning. Every sentence provides essential information without redundancy.

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?

Comprehensive coverage for a complex interaction tool: addresses various input types, complex editor frameworks, ref management constraints, and differentiation from similar fill-type siblings (safari_fill_form, safari_fill_and_submit implicitly).

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 has 100% coverage establishing baseline 3. Description adds valuable operational context about 'ref' parameter lifecycle (expiration after new snapshots) and clarifies that 'value' replaces rather than appends, warranting elevation above baseline.

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?

Description opens with specific verb+resource ('Fill/replace value in an input, textarea, select, OR contenteditable') and explicitly distinguishes from siblings safari_replace_editor and safari_type_text by naming them as alternatives for different contexts.

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?

Explicitly states when to use ('Use for SETTING a value') and provides clear alternatives ('use safari_replace_editor instead', 'use safari_type_text'). Includes critical prerequisite about taking a fresh snapshot when using refs.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/achiya-automation/safari-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server