type_into_element
Type text into an input field or textarea using the element index from get_interactive_elements. Clears existing text before entering new text.
Instructions
Enter text into an input field or textarea using an element index.
Purpose
This tool allows the agent to type text into editable elements such as
input fields or textareas. The element must first be discovered using
get_interactive_elements, which returns a list of visible UI elements
along with their corresponding indexes.
The index returned by get_interactive_elements should be used directly
with this tool to identify which element to type into.
Recommended Agent Workflow
Call
get_interactive_elementsto retrieve all interactive elements.Identify the correct element by reviewing fields such as:
text
placeholder
aria_label
tag
Use the provided
indexto calltype_into_element.If the page changes after typing (e.g., search suggestions appear), consider calling
get_interactive_elementsagain.
Parameters
session_id : str
Active browser session identifier returned by open_browser.
index : int
Index of the element to type into. This must correspond to the index
returned by get_interactive_elements.
text : str The text to be entered into the selected element.
Returns
dict { "session_id": str, "index": index of the element used, "text_to_type": the text to enter, "status": str, "message": str }
Error Conditions
If get_interactive_elements has not been called previously,
the element cache may be empty and the tool will return an error.
Notes
This tool automatically clears any existing text in the element before entering the new text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| index | Yes | ||
| session_id | Yes |