type_text
Enter or clear text in input fields, textareas, and contenteditable elements. Replace, append, fast-type, set values directly, or clear fields using selectable modes.
Instructions
Fill, append, fast-type, directly set, or clear a form control.
Use this tool for input elements, textareas, and contenteditable elements.
Args: selector: CSS selector or SeleniumBase selector identifying the input, textarea, or contenteditable element. text: Text to enter or set. Not used when mode="clear_only". mode: - "fill_input": Clear the field and then type text normally. - "append": Keep the existing value and add text as keystrokes. - "fast_type": Clear the field and type text without pauses. - "set_value": Set the value directly and immediately. This can be useful for fast form filling but does not simulate normal key events. It can also be used to handle input sliders, e.g. 'input[type="range"]'. - "clear_only": Empty the text field; text is ignored. timeout: Maximum seconds to wait for the target element.
Tool selection: - Normal text entry to replace existing text -> mode="fill_input". - Add text without clearing the field first -> mode="append". - Fast typing to replace existing text -> mode="fast_type". - Directly set a value (e.g. input slider) -> mode="set_value". - Empty a field of all text -> mode="clear_only".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | fill_input | |
| text | No | ||
| timeout | No | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |