esp_keys
Press a keyboard shortcut or a sequence of shortcuts on the hardware keyboard, such as "ctrl+s" or ["ctrl+a","delete"], without leaving keys held. Use esp_type for typing text.
Instructions
Press a keyboard shortcut (combo) or a sequence of shortcuts on the hardware keyboard, e.g. "ctrl+s" or ["ctrl+a", "delete"]. Letters follow the layout of the foreground window. The keyboard is never left held. In a sequence a foreground window change stops it (focus_changed, with steps_done) unless allow_focus_change. For text use esp_type.
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": {
"control_id": "<control_id>"
},
"name": "esp_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| combo | No | One shortcut: modifiers (ctrl, shift, alt, win) and at most one key joined with "+", e.g. "ctrl+shift+esc", "alt+f4", "win+r", "ctrl+z". Keys: letters, digits, punctuation (through the current layout), enter, esc, tab, space, backspace, delete, insert, home, end, pageup, pagedown, up, down, left, right, f1..f24, printscreen, menu, plus, minus. | |
| hold_ms | No | How long each shortcut is held, 1..2000 ms (default 40). | |
| sequence | No | Several shortcuts pressed one after another, e.g. ["ctrl+a", "delete"]. | |
| control_id | Yes | From esp_control begin. | |
| request_id | No | Optional idempotency key: repeating a call with the same request_id within 5 min returns the first receipt (also an uncertain one) without running the action again. | |
| allow_focus_change | No | Allow the foreground window to change between steps (e.g. alt+tab in a sequence). Default false: a change stops the sequence with focus_changed. |