browser_type
Type text into web input fields to automate form filling, logins, and security tests by injecting XSS or SQLi payloads.
Instructions
Type text into an input field (login forms, search boxes, payload injection).
PREREQUISITE: browser_open and browser_go must have been called first.
TYPICAL LOGIN FLOW:
browser_go(url="https://target.com/login")
browser_type(selector="#email", text="admin@target.com")
browser_type(selector="#password", text="password123")
browser_click(selector="#login-btn")
For XSS testing, type payloads directly: browser_type(selector="#search", text='alert(1)')
Args: selector: CSS selector for the input element (e.g. "#email", "input[name=username]", "#search") text: Text to type. Can be any string including XSS/SQLi payloads. clear: Clear existing text before typing (default true). Set false to append. press_enter: Press Enter key after typing (default false). Useful for search forms without a submit button. session_name: Browser session to use (default: "default")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| clear | No | ||
| tab_id | No | ||
| selector | Yes | ||
| press_enter | No | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |