window_send_key
Automate background window input by sending key events (Enter, Escape, Tab, arrows, etc.) with optional modifiers to a specified window, without moving the cursor or stealing focus.
Instructions
Send special key events (Enter, Escape, Tab, Backspace, Arrow keys, etc.) with optional modifiers to 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": {
"window_id": "<window_id>",
"key": "<key>"
},
"name": "window_send_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name (e.g. Enter, Escape, Tab, BackSpace, Space, Left, Right). | |
| modifiers | No | Optional list of modifiers (ctrl, shift, alt). | |
| window_id | Yes | Target window ID or title. |