pilot_fill
Clear and replace text in input fields or textareas by specifying an element reference and new value. Ideal for form filling and search box entry.
Instructions
Fill an input or textarea with new text, replacing any existing content. Use when the user wants to enter text into a form field, search box, or editable element. Prefer pilot_fill over pilot_type for inputs because it is faster and clears existing content automatically.
Parameters:
ref: Element reference from snapshot (e.g., "@e12") or a CSS selector (e.g., "#email")
value: The text to fill into the element
Returns: Confirmation with the filled element ref.
Errors:
"Element not found": The ref is stale. Run pilot_snapshot to get fresh refs.
"Element is not editable": The element is read-only or disabled. Try pilot_click to enable it first.
Timeout (5s): The element could not be filled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref (@e3) or CSS selector | |
| value | Yes | Value to fill |