pressKey
Press keyboard keys on the focused page or element to submit forms, close dialogs, navigate with Tab/Arrow keys, and execute shortcuts like Ctrl+A.
Instructions
Press keyboard key on focused element or page. For form submission (Enter), closing dialogs (Escape), navigation (Tab, Arrow keys), shortcuts (Ctrl+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": "pressKey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | APOM element ID to focus before pressing. Optional. | |
| key | Yes | Key to press: 'Enter', 'Escape', 'Tab', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Delete', 'Home', 'End', 'PageUp', 'PageDown', 'Space' | |
| selector | No | CSS selector to focus before pressing. Optional. | |
| modifiers | No | Modifier keys to hold while pressing (e.g., ['Control'] for Ctrl+key) |