Type text
typeSends text input to the focused or specified window via XTest on X11/Xwayland or wtype on Wayland, preventing garbled text by keeping input paths separate.
Instructions
Types text into the focused (or given) window. X11/Xwayland targets use XTest, Wayland targets use wtype. Do not mix the two paths in one session: keymap uploads can garble XTest text.
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": {
"text": "<text>"
},
"name": "type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Display id from display_open. Optional when exactly one display is open. | |
| text | Yes | ||
| window_id | No | Focus this window first |