send_hotkey
Send keyboard shortcuts or keystrokes to the active window or a specified application window, optionally focusing it first and setting key-event delay.
Instructions
Send keyboard shortcuts or keystrokes to the active window or a specific application window.
Args: keys: Key combination such as 'ctrl+shift+b', 'ctrl+s', 'alt+F4', or 'Return'. window_title: Optional window title substring to focus before sending the hotkey. delay_ms: Delay between key events in milliseconds (default 50).
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": "send_hotkey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| delay_ms | No | ||
| window_title | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||