Press a key
browser_press_keyPress a key or shortcut where the focus is, e.g. "Enter", "Escape", "ArrowDown" or "Control+a". A JavaScript dialog (alert, confirm, prompt, leave page) is answered with "Enter" (OK) or "Escape" (Cancel).
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 or shortcut, e.g. 'Enter'. | |
| repeat | No | Times to press it, default 1. | |
| tab_id | No | A result's tab_id. | |
| session_id | No | Only with several sessions. |