Type Text
type_textEnter, append, or clear text in input fields, textareas, and contenteditable elements. Choose fill, append, fast type, direct set, or clear mode to modify element values without submitting forms.
Instructions
Enter, append, directly set, or clear a value on a page element.
Use this tool to modify text/value fields such as inputs, textareas, contenteditable elements, and supported input sliders. It changes the target element's value or content; it does not submit a form or click other elements.
Choose the mode based on the desired interaction:
"fill_input": Normal user-like entry; clears the existing value first.
"append": Preserves the existing value and adds text via keystrokes.
"fast_type": Clears the existing value and types without typing pauses.
"set_value": Sets the value directly without simulating key events; prefer this for fast programmatic value changes when keyboard events are not required.
"clear_only": Clears the existing value;
textis ignored.
The tool waits up to timeout seconds for the target element. If the
target cannot be used successfully, the underlying SeleniumBase error is
handled by handle_sb_errors rather than returning a success message.
Args: selector: CSS or SeleniumBase selector identifying the target element.
text: Text/value to enter or set. Ignored for "clear_only".
mode: Interaction mode. See the mode descriptions above.
timeout: Maximum seconds to wait for the target element.
Must be appropriate for the page's expected load/interaction time.Returns: A confirmation message after the operation succeeds; otherwise the error handler returns the resulting failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | fill_input | |
| text | No | ||
| timeout | No | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |