key
Send key press, down, or up events to the focused app with modifier keys. Requires explicit confirmation for destructive shortcuts like cmd+q.
Instructions
Key event to the focused app. direction press (default), down, or up. Destructive chords (cmd+q, cmd+w, cmd+delete) require confirmed=true.
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": "key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| confirmed | No | ||
| direction | No | ||
| modifiers | No |