press_key
Simulates pressing a keyboard key, optionally on a specific page element, to trigger actions like Enter, Escape, Tab, or keyboard shortcuts in a shared browser tab.
Instructions
Press a key, optionally on an element. Examples: "Enter", "Escape", "Tab", "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": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| ref | No | Element ref from the latest snapshot, e.g. "e14". | |
| tab | No | Tab handle from list_tabs, e.g. "chrome:812". Optional when only one tab is shared. |