type
Enters text into the first element matching a CSS selector, focuses it, and sends real key events so page input handlers fire; sets date, time, range, and color values directly.
Instructions
Type text into the first element matching a CSS selector in the session's active tab: waits up to timeout for it, clicks it to focus, then sends real key events for each character, so the page's input handlers fire. Plain language works too: a jev: prefix (e.g. jev: the email field) goes straight to the Jev decision model, and with TYPESAFE_API_KEY set on the server a selector that matches nothing as CSS is retried as a plain-language goal — Jev picks the input from the page's interactive elements (it errors rather than guesses); the text itself always comes from you. Use press_key afterwards for Enter or Tab, and press_key alone for single keys. clear empties the field first; without it, text is appended. delay paces the characters for pages that react to typing speed. A date, time, datetime-local, month, week, range or color input takes no typed text, so its value is set directly with the events the page listens for: dates as 2026-03-14 or 03/14/2026, times as 14:30 or 2:30 PM, a range as a number. Afterwards it reads the field back: it reports text the page reformatted (a phone mask), and fails when the field is empty afterwards (the page dropped the text). Target an input, textarea or contenteditable element; typing into a button reports success but changes nothing. Returns how many characters were typed, or the value set. Fails if the selector matches nothing within timeout and Jev can't (or isn't configured to) resolve it.
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": {
"sessionId": "<sessionId>",
"selector": "<selector>",
"text": "<text>"
},
"name": "type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to type. | |
| clear | No | Empty the field's current value before typing. Default false, which appends. | |
| delay | No | Milliseconds to pause after each character, for pages that react to typing speed. Default 0. | |
| timeout | No | Milliseconds to wait for `selector` to appear. Default 5000. | |
| selector | Yes | CSS selector of the input, textarea or editable element. Or describe it in plain words — `jev:<goal>` (e.g. `jev: the email field`) goes straight to the Jev decision model, and when TYPESAFE_API_KEY is set a selector that matches nothing as CSS is retried as such a description. | |
| sessionId | Yes | The id returned by open_browser_session. Errors if no open session has it. |