press_key
Simulate pressing keyboard keys like Enter, Tab, or arrow keys. Specify a key name and optional repeat count to automate keystrokes.
Instructions
Presses a key by name (Enter, Tab, Escape, F1-F12, Arrow keys, etc.)
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": {
"key": "<key>"
},
"name": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name to press (e.g., "enter", "escape", "tab", "delete", "f1"-"f12", arrow keys) | |
| repeat | No | Number of times to press the key |