Type text (per-keystroke)
typeType text into input fields that require real keystrokes, firing key events per character. Optionally clear the field before typing.
Instructions
Type into a field one key at a time (Playwright locator.pressSequentially), firing a keydown/keypress/keyup per character — for inputs whose handlers need real keystrokes and don't react to fill. Set clear to empty the field first.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to type | |
| clear | No | Clear the field before typing (default false) | |
| delay | No | Delay in ms between keystrokes (default 20) | |
| selector | Yes | CSS selector or Playwright locator of the field |