key
Press a shortcut chord or single input such as Return, ctrl+c, or alt+F4 on an X11 desktop to automate actions and control applications.
Instructions
Press a key or chord: "Return", "ctrl+c", "ctrl+shift+t", "alt+F4", "super", "Escape", "Page_Down". X keysym names are accepted. expect_window works as in type_text.
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": {
"combo": "<combo>"
},
"name": "key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| combo | Yes | ||
| repeat | No | ||
| expect_window | No | ||
| screenshot_after | No |