desktop_press
Sends key combinations such as Return, Escape, Cmd+C, or Shift+Tab to a target app or window, optionally without focusing it, to automate desktop shortcuts.
Instructions
agent-desktop press: Send a key combo: return, escape, cmd+c, shift+tab ...
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": {
"combo": "<combo>"
},
"name": "desktop_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Target application name; keys go to its process without focusing it (--headed focuses its window first) | |
| combo | Yes | Key combo: return, escape, cmd+c, shift+tab ... | |
| force | No | Send the combo even if the adapter flags it as a dangerous shortcut | |
| window_id | No | Target the application instance that owns this window (from list-windows); use it when several instances share one name |