Press a key or key combo
key_pressPresses a named key such as Return, Tab, or Escape, optionally with shift, ctrl, alt, or logo modifiers, to send keyboard input to the desktop.
Instructions
Press a named key (e.g. Return, Tab, Escape, BackSpace, Left, Right, Up, Down, PageDown/Next, Home, End, Delete, minus) optionally with modifiers (shift, ctrl, alt, logo).
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_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| modifiers | No |