press_key
Sends keyboard key presses or key combinations to trigger shortcuts, navigate interfaces, or invoke function keys.
Instructions
Press a key or key combination. Use for shortcuts (cmd+c), navigation (tab, enter, escape, arrows), or function keys.
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 | Key to press: a-z, 0-9, return/enter, tab, space, backspace, delete, escape, up/down/left/right, home, end, pageup, pagedown, f1-f12 | |
| modifiers | No | Modifier keys to hold |