browser_type
Types text into a web page input element using CSS, XPath, ID, name, class, or tag selectors. Optionally clears existing text first.
Instructions
Type text into an input element.
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>",
"selector": "<selector>",
"text": "<text>"
},
"name": "browser_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session ID | |
| selector | Yes | Element selector | |
| text | Yes | Text to type | |
| by | No | Selector type (css, xpath, id, name, class, tag) | css |
| clear | No | Whether to clear existing text first | |
| timeout | No | Maximum seconds to wait for element |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |