safari_fill
Set or replace values in input fields, textareas, selects, and rich text editors. Automatically handles React controlled inputs and common editors like ProseMirror and Draft.js.
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
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Ref ID from safari_snapshot | |
| value | Yes | Value to fill | |
| receipt | No | Tab receipt from safari_new_tab — pins this call to that tab (survives reconnects/subagents) | |
| selector | No | CSS selector |