key_press
Press a key or shortcut chord, such as Return, cmd+s, or F5, to automate keyboard input on macOS.
Instructions
Press a key or shortcut chord, e.g. 'Return', 'cmd+s', 'cmd+shift+p', 'F5'. Use keyboard_type for regular text.
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": {
"chord": "<chord>"
},
"name": "key_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chord | Yes | ||
| repeat | No |