key_press
Simulate pressing a key or key combination on macOS. Send keyboard shortcuts like 'cmd+c', 'return', or 'escape' to control applications.
Instructions
Press a key or key combination (e.g. 'return', 'escape', 'cmd+c', 'cmd+shift+l')
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": {
"keys": "<keys>"
},
"name": "key_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Key combo like 'return', 'escape', 'tab', 'cmd+c', 'cmd+shift+a', 'up', 'down', 'pagedown', 'pageup' |