ui_type
ui_typeTypes text into a matching editable element one key at a time, appending to existing content, for autocomplete, search-as-you-type, masked inputs, and OTP boxes.
Instructions
Type text into the single editable element matching the selector one key at a time, like a user (keydown, input and keyup per character), appending to what is already there. Use it instead of ui_fill for autocomplete, search-as-you-type, masked inputs (phone, card) and OTP boxes. Use the selector from ui_get_page_state. Text typed into a password, one-time-code or card-number field is never stored in the report. Selectors containing "nth=" are positional: call ui_get_page_state again after the page changes before reusing them.
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": "ui_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to type | |
| delayMs | No | Pause between keystrokes in ms (0-500, default 0), for fields that debounce input | |
| selector | Yes | CSS selector, or the `selector` value of an element from ui_get_page_state, passed unchanged | |
| session_id | No | Which open session to act on, as returned by ui_start_session. Optional with one open session; required when several are open. |