browser_type
Types text into a web page input field, locating it by snapshot ref or CSS selector. Optionally clears existing content first and submits by pressing Enter.
Instructions
向输入框输入文字。优先用 ref 定位;可选回车提交
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 | 快照中的元素编号,如 e5 | |
| text | Yes | 要输入的内容 | |
| clear | No | 输入前是否清空已有内容,默认 true | |
| submit | No | 输入后是否按 Enter,默认 false | |
| selector | No | CSS 选择器(与 ref 二选一) |