key_tap
Simulates a single keyboard key tap by name in the frontmost window, enabling AI agents to press keys in games or keyboard-controlled apps with adjustable hold time.
Instructions
Tap a raw keyboard key by name (e.g. 'return', 'w', 'esc').
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": "key_tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| hold_ms | No |