type_text
Input Unicode text into a window programmatically, with the ability to send keystrokes without activating the target window.
Instructions
Type text into a window via SendInput Unicode. noActivate uses PostMessage WM_CHAR so the target window doesn't need focus.
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_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | Window handle from list_windows or launch_app. | |
| pid | No | ||
| processName | No | ||
| titleContains | No | ||
| text | Yes | Text to type into the target window. Sent via SendInput Unicode, so any Unicode character including CJK is supported. | |
| delayMs | No | Delay between keystrokes in milliseconds. | |
| pressMs | No | Duration of each key press in milliseconds. | |
| noActivate | No | When true, sends WM_CHAR messages via PostMessage instead of SendInput, so the target window never needs focus. Some applications may not respond to posted messages. |