browser_press_key
Press a keyboard key or chord (for example Enter or Control+a) on a specified element or the focused element; for text input, use browser_type.
Instructions
Press a key or chord (Enter, Tab, Control+a); to a target, else the focused element. For text, browser_type.
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 or chord (Enter, Control+a) | |
| ref | No | ref from browser_snapshot | |
| text | No | Visible text/label, instead of ref | |
| state | No | true: full page state | |
| selector | No | CSS selector, instead of ref | |
| snapshot | No | Snapshot after the action |