ui_set_value
Set text directly in an editable field using UI Automation, eliminating key simulation. Requires action tier and allowlist; check field visibility before use.
Instructions
Set text in an editable field via UI Automation (no key simulation). REQUIRES action tier + allowlist. Check can_set_value in ui_find; modern apps (e.g. Win11 Notepad) may not expose fields. Confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | Exact window handle | |
| value | Yes | Text to set | |
| element_index | No | Stable index from ui_find | |
| name_contains | No | Field name | |
| title_contains | No | Window title fragment |