keyboard_press
Press keyboard keys or combinations to automate macOS GUI interactions, enabling system control through scripted input actions.
Instructions
Press a key or key combination (e.g., 'enter', 'cmd+c', 'shift+tab')
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": "keyboard_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name (enter, tab, escape, space, arrow-up, etc.) | |
| modifiers | No | Modifier keys to hold |