browser_press
Simulates trusted keyboard key presses and combos in the focused browser element to submit forms, navigate fields, close dialogs, or drive keyboard-driven UIs.
Instructions
Press a key or key combo in the focused element, delivered as trusted CDP keyboard events with correct virtual key codes. Single keys: "enter" (submit forms), "tab" (next field), "escape" (close dialogs), "backspace", "delete", "arrowup/arrowdown/arrowleft/arrowright", "home", "end", "pageup", "pagedown", "space". Combos: "ctrl+a" (select all), "ctrl+c", "ctrl+v", "ctrl+shift+t", "alt+arrowdown". Function keys: "f5", "f12". Use after browser_type to submit a form, or to drive keyboard-driven UIs. Returns the post-press state diff + network requests.
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 | Key or plus-separated combo: named keys (enter, tab, escape, backspace, delete, arrowup, arrowdown, arrowleft, arrowright, home, end, pageup, pagedown, space), single characters, function keys (f1-f12), or modifier combos (ctrl/alt/shift/meta + key, e.g. "ctrl+a") |