Press keyboard key
browser_press_keyDispatch key presses like Enter, Escape, Tab, or ArrowDown with optional Ctrl, Alt, Shift, or Meta modifiers to a focused or specified element. Use it to trigger shortcuts, forms, or navigation in Chrome.
Instructions
Dispatch a keyboard key press (Enter, Escape, Tab, ArrowDown, Backspace, etc.) with optional modifier keys to a target element or active 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": {
"key": "<key>"
},
"name": "browser_press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Hold Alt modifier. | |
| key | Yes | Key name as in KeyboardEvent.key, e.g. 'Enter', 'Escape', 'ArrowDown', 'a'. | |
| ref | No | Optional element ref to focus first. | |
| ctrl | No | Hold Ctrl modifier. | |
| meta | No | Hold Meta/Command modifier. | |
| shift | No | Hold Shift modifier. | |
| tabId | No | Controlled tab id. | |
| selector | No | Optional CSS selector to focus first. |