Skip to content

WebSocket - Input

Simulate keyboard input on the host machine.

Send the KEYBOARD_KEYPRESS event with a key to press a single key.

Request
{
"id": "abc123",
"token": "abc123",
"event": "KEYBOARD_KEYPRESS",
"data": {
"key": "a"
}
}

Send the KEYBOARD_TEXT event with a text string to type text.

Request
{
"id": "abc123",
"token": "abc123",
"event": "KEYBOARD_TEXT",
"data": {
"text": "hello"
}
}