key
Press a key combination.
modifiers bitmask: LCtrl=1, LShift=2, LAlt=4, LWin=8
Common keycodes: Enter=40, Escape=41, Tab=43, Space=44,
F4=61, PageDown=78, PageUp=75, Win=227
Examples:
Alt+F4 → key(4, [61])
Ctrl+W → key(1, [26])
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": {
"modifiers": "<modifiers>",
"keycodes": "<keycodes>"
},
"name": "key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keycodes | Yes | ||
| modifiers | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |