Discrete Actions
Type
Type text into input fields and other elements
The type action allows you to input text into form fields, search boxes, and other text input elements.
Default Behavior
By default, the agent will:
- Clear any existing text in the target field
- Type the specified text
- Wait for the text to be fully entered
The agent handles all these steps in a single action, making the typing process smooth and efficient.
Syntax Variations
Basic Typing
Clears existing text and types new text
Type with Enter
Types text and simulates Enter key press
Explicit Clear
Clear and type [text] in the [field name] field
Preserve Existing Text
Appends text without clearing
Best Practices
- Clearly specify the target field using its label or placeholder text
- Use descriptive field names that match what’s visible on the page
- Consider whether existing text should be cleared or preserved
- Mention if Enter key press is needed after typing