Type text
typeEnter text into inputs, textareas, or contenteditable elements with trusted keystrokes. Automatically focuses the target, clears the field by default, and can submit by pressing Enter.
Instructions
Type into an input, textarea or contenteditable element. When a target is provided (ref or selector), the cursor automatically moves to the element and clicks it to activate/focus it first, then executes natural typing via insertText without DOM manipulation. Clears the field by default and uses trusted CDP keystrokes. Set pressEnter=true to submit.
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": {
"text": "<text>"
},
"name": "type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref to type into. Cursor moves to element and clicks it to activate first. | |
| text | Yes | Text to type. | |
| clear | No | Clear the field before typing. Default true. | |
| delay | No | Delay per character in ms (defaults to human typing cadence). | |
| tabId | No | ||
| focused | No | Type into the currently focused element. | |
| frameId | No | ||
| natural | No | Use insertText for natural typing without DOM manipulation. Default true. | |
| timeout | No | ||
| trusted | No | ||
| selector | No | CSS selector to type into. Cursor moves to element and clicks it to activate first. | |
| waitUntil | No | domcontentloaded | |
| delayAfter | No | ||
| pressEnter | No |