win_set_control_text
Sets a Windows control's text directly via WM_SETTEXT without needing focus or bringing the window forward. Use the control's HWND to replace text in background windows like Notepad Edit controls.
Instructions
Set a control's text directly via WM_SETTEXT (reliable, no focus needed).
Pass the control's hwnd (from list_child_windows) - e.g. the Edit control of
a background Notepad - to replace its text without bringing the window forward.
Args: params (WinSetTextInput): target control by hwnd (preferred) or title, plus text.
Returns: str: JSON {"ok": true, "target_hwnd": N, "text_len": N}.
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": {
"params": "<params>"
},
"name": "win_set_control_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |