browser_type
Types text into a browser input field using a snapshot reference, element index, or CSS selector, with an option to replace or append existing content.
Instructions
Type text into an input field by snapshot ref, element index or CSS selector.
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 |
|---|---|---|---|
| ref | No | Element reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container. | |
| text | Yes | The text to type into the field. | |
| clear | No | true replaces the field content, false appends to it (default: replace). | |
| index | No | The numeric index of the input element from the snapshot (mapped to ref "@e<index>"). | |
| tabId | No | Optional browser tab id to act on instead of the focused tab. | |
| selector | No | Alternative CSS selector of the input element. |