fill_form
Automate form completion by filling multiple fields in sequence, including login forms, search inputs, and registration pages. Supports pressing Enter after each field and clicking submit buttons for authentication flows.
Instructions
Fill out one or multiple form fields in sequence, perfect for login forms, registration, search inputs, or any text entry. Supports pressing Enter after each field and clicking a submit button. Commonly used for authentication flows before accessing chat interfaces. Each field can be filled independently with optional Enter key press.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fields | Yes | Array of form field objects to fill in sequence. Each field requires a CSS selector and value. Example: [{selector: 'input[name="email"]', value: 'user@example.com'}, {selector: 'input[type="password"]', value: 'mypassword'}] | |
sessionId | Yes | Session ID obtained from initialize_session | |
submitButton | No | Optional CSS selector for submit button to click after all fields are filled (e.g., 'button[type="submit"]', '#login-button') |