Press key
browser_press_keyPresses a key or chord—such as Enter, Tab, Escape, Control+a, or ArrowDown—on the focused element or a specified target to trigger browser interactions.
Instructions
Press a key or chord (e.g. "Enter", "Tab", "Escape", "Control+a", "ArrowDown") on the focused element or on a target.
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 | ||
| ref | No | Element ref from browser_snapshot, e.g. "e12" | |
| selector | No | Playwright selector (CSS, text=..., role=..., xpath=...) used when no ref is given | |
| snapshot | No | Return an accessibility snapshot of the page after the action (default from BROWSER_MCP_SNAPSHOT_AFTER_ACTIONS) |