ui_key_code
Send raw macOS key codes for keys without characters, such as arrow keys, return, space, and escape. Enables keyboard simulation for UI control.
Instructions
Send a raw macOS key code, for keys with no character.
Common codes: 123 left, 124 right, 125 down, 126 up, 36 return, 49 space, 53 escape.
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": {
"code": "<code>"
},
"name": "ui_key_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| modifiers | No |