key_combination
Press key combinations with modifiers in the focused app or menu. Simulates menu shortcuts, not OS-global hotkeys.
Instructions
Presses a focused-app or menu key combination with modifiers; OS-global hotkeys such as Electron globalShortcut are not guaranteed
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": {
"modifiers": "<modifiers>",
"key": "<key>"
},
"name": "key_combination"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modifiers | Yes | Modifier keys to hold (command, shift, option, control) | |
| key | Yes | Key to press with modifiers in the focused app/menu shortcut path; OS-global hotkeys are not guaranteed |