Type into a field
browser_typeType text into a web form field, replacing existing content, using a snapshot ref or CSS/Playwright selector; optionally press Enter to submit.
Instructions
Type text into a field, replacing what it held, named by ref or selector as for browser_click. submit presses Enter afterwards.
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": {
"session_id": "<session_id>",
"text": "<text>"
},
"name": "browser_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | A ref from the latest `browser_snapshot`: for `[ref=e14]`, 'e14'. This or `selector`. | |
| text | Yes | What to type. It replaces whatever the field held. | |
| submit | No | Press Enter after typing. | |
| timeout | No | Seconds; unset, 30. | |
| selector | No | A CSS or Playwright selector. This or `ref`. | |
| session_id | Yes | The session_id `browser_open` returned. |