browser_press_key
Press a keyboard key on a target page and receive an updated snapshot. Simulates key events like Enter or Tab for browser automation.
Instructions
Press a keyboard key (Enter, Tab, Escape, ArrowDown, etc.).
Returns an updated snapshot.
Args: page_id: Target page ID. key: Key name (DOM KeyboardEvent key).
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": {
"page_id": "<page_id>",
"key": "<key>"
},
"name": "browser_press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||