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.
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": {
"value": "<value>"
},
"name": "ui_set_value"
}
}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 |