browser_press_key
Simulate keyboard input by pressing a key or shortcut such as Enter, ArrowDown, or Control+A in a Playwright browser session to trigger navigation, submit forms, or run commands.
Instructions
Press a keyboard key or key combination (e.g. 'Enter', 'ArrowDown', 'Control+A').
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 shortcut recognized by Playwright Keyboard.press(). | |
| sessionId | No | Optional target browser session ID. If omitted, uses the currently active session (or auto-launches one). |