browser_press
Press keyboard keys like Enter, Tab, or shortcuts in a Chrome browser to interact with web pages and elements during automated testing.
Instructions
Press a keyboard key, optionally on a specific element.
Key examples: Enter, Tab, Escape, Backspace, Delete, ArrowUp, ArrowDown, Control+a, Control+c, Control+v, Shift+Tab, Alt+F4
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 to press (e.g., 'Enter', 'Tab', 'Escape', 'ArrowDown', 'Control+a') | |
| selector | No | Optional selector to focus before pressing key | |
| timeout | No | Timeout in milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |