Type text
browser_typeTypes text key by key into a specified or focused browser element, triggering key handlers and autocomplete for forms and search inputs.
Instructions
Type text key by key (triggers key handlers, autocomplete). Types into the focused element when no target is given.
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": "browser_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | ||
| ref | No | Element ref from snapshot (preferred) | |
| name | No | ||
| role | No | ||
| text | Yes | Text to type | |
| exact | No | ||
| label | No | ||
| expect | No | ExpectSpec postconditions | |
| pageId | No | ||
| submit | No | ||
| testId | No | ||
| within | No | Scope to a unique container (ref, role+name, label, testId or CSS selector) | |
| delayMs | No | ||
| session | No | ||
| selector | No | CSS (last resort) | |
| snapshot | No | Page state returned after the action: diff (default), full, none | |
| targetText | No | Locate the element by visible text | |
| placeholder | No |