press_key
Simulates key presses and keyboard shortcuts on a Linux desktop, including repeats and optional screenshots, to automate text entry, navigation, and app control.
Instructions
Press a key or shortcut, e.g. "Return", "Escape", "ctrl+s", "ctrl+l", "alt+Tab", "super", "F5".
Aliases like enter, esc, cmd/win (= super), pgdn, del are accepted.
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": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| repeat | No | ||
| screenshot | No |