Type into a field by ref or by name
type_into_elementFocus a text field by element reference or accessible label, then click, optionally clear, type the value, and optionally submit in one call. Use it to fill search boxes and forms efficiently.
Instructions
Focus a text field (by ref from read_page, or by matching its accessible name/label) and type into it in one call — finds, clicks, optionally clears, types, and optionally submits. This is the efficient path for 'fill in the search box and search'.
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": {
"value": "<value>"
},
"name": "type_into_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| role | No | ||
| text | No | Accessible name/label to search for, if not using ref. | |
| clear | No | Select-all and delete existing content first. | |
| value | Yes | Text to type. | |
| press_enter | No | Press Return after typing (e.g. to submit a search). | |
| window_address | No |