press_key_combination
Simulates pressing keys (Enter, Tab, Space, etc.) with optional Command, Option, Control, or Shift modifiers to automate keyboard shortcuts and navigation in macOS.
Instructions
Simulates pressing a key (enter, tab, space, escape, backspace) with optional modifiers (command, option, control, shift).
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_combination"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key name to press (e.g., 'space', 'enter', 'tab', 'escape', 'c', 'v'). | |
| modifiers | No | Optional array of key modifiers. |