key
Press a key or key combination to execute macOS shortcuts or send keystrokes. Specify modifier combinations like command+c or named keys like return.
Instructions
Press a key or key combination. Use "+" to combine modifiers, e.g. "ctrl+c", "command+shift+z". Named keys: escape, return, tab, space, delete, up, down, left, right, f1–f12. IMPORTANT: On macOS, always prefer "command" over "ctrl" for standard shortcuts — e.g. use "command+a" (select-all), "command+c" (copy), NOT "ctrl+a"/"ctrl+c". "ctrl+a" and similar ctrl-shortcuts may trigger third-party app global hotkeys.
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": {
"text": "<text>"
},
"name": "key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Key sequence, e.g. "ctrl+c" | |
| repeat | No | Number of times to repeat (default 1) |