type_text
Clears existing text from an input field and types new text into it, using CSS, XPath, or other locator strategies to target the element.
Instructions
Clear and type text into an input field.
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 |
|---|---|---|---|
| by | No | Locator strategy | css |
| text | Yes | Text to type | |
| timeout | No | Wait timeout in seconds | |
| selector | Yes | CSS selector, XPath, or other locator value | |
| clear_first | No |