desktop_key
Presses or holds a keyboard key or chord, such as ctrl+s or alt+f4, for desktop automation; blocked OS-escape shortcuts are rejected in whitelist mode.
Instructions
Press or hold a key or key chord (e.g. "enter", "ctrl+s", "alt+f4", "ctrl+shift+p"). Blocked OS-escape chords are rejected under whitelist mode.
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": "desktop_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Key name or `+`-joined chord (e.g. "ctrl+a", "f5", "esc"). | |
| repeat | No | ||
| hold_ms | No | ||
| into_hwnd | No |