key
Sends shortcut combinations, such as Ctrl+L or Alt+F4, to an isolated virtual screen, automating GUI actions without affecting the user's desktop.
Instructions
Press key combinations such as ctrl+l, Return, alt+F4, ctrl+shift+t.
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": "key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | combinations pressed in order, xkb keysym names, e.g. ["ctrl+l", "Return", "alt+F4"] | |
| screen | No | screen name; optional when the session owns exactly one screen | |
| settle_ms | No | delay before that screenshot, default 150 | |
| screenshot_after | No | return a screenshot after the action (default false) |