Press keys
press_keysSend key chords like Ctrl+S or Enter to a target window, using background input by default or taking over for real keyboard actions.
Instructions
Press a key chord in the target window.
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": {
"target": "<target>",
"keys": "<keys>"
},
"name": "press_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Key chord, e.g. "ctrl+s", "enter", "ctrl+shift+p", or ["ctrl","s"]. | |
| target | Yes | Window id from list_windows, "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard. | |
| takeover | No | Omit (default): background first; the server decides any takeover. true: activate the window and post real input now. false: background only, never take over. |