browser_press
Presses a keyboard key on a webpage to trigger form submission, focus movement, or navigation, with optional element targeting, tab selection, and key modifiers.
Instructions
Press a keyboard key on a webpage (e.g. "Enter", "Tab", "Escape", "ArrowDown", "Backspace").
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key to press (e.g. "Enter", "Tab", "Escape"). | |
| ref | No | Element reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container. | |
| tabId | No | Optional browser tab id to act on instead of the focused tab. | |
| modifiers | No | Optional key modifiers, e.g. "Control+Shift". |