browser_press_key
Press a keyboard key (enter, tab, escape, etc.) on a specific element or the currently focused element to submit forms, navigate, or close modals.
Instructions
Send a keyboard key press to an element or the currently focused element.
Useful for submitting forms (enter), moving focus (tab), closing modals (escape), or triggering keyboard-driven UI components.
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 | Key name: enter, tab, escape, space, backspace, delete, home, end, pageup, pagedown, arrowup/down/left/right, f1-f12 | |
| selector | No | CSS selector of element to send the key to. Empty = active element. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |