type_text
Type text into a webpage input field using a CSS selector. Optionally clear existing text, press Enter, and navigate to a URL first. Returns a screenshot for visual verification.
Instructions
Type text into an input field or textarea by CSS selector. Returns a screenshot after typing so you can visually verify the result. Options to clear existing text first and press Enter after typing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"selector": "<selector>",
"text": "<text>"
},
"name": "type_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector of the input element (e.g., 'input[name="email"]', '#search') | |
| text | Yes | Text to type into the element | |
| url | No | Optional URL to navigate to before typing | |
| clearFirst | No | Clear existing text before typing (default: false) | |
| pressEnter | No | Press Enter after typing (default: false) |