browser_press_key
Simulate keyboard key presses such as Enter, Tab, ArrowDown, or Control+a in the browser; optionally focus a referenced element before pressing.
Instructions
按下键盘按键,如 Enter / Tab / ArrowDown / "Control+a"。带 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": {
"key": "<key>"
},
"name": "browser_press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | 键名,如 Enter、Escape、ArrowDown、Control+a | |
| ref | No | 先聚焦此元素再按键 |