set_value
Writes text or selects options in editable UI elements such as text fields and combo boxes using the platform's native API. Optionally replaces existing content.
Instructions
Set the value of an editable element.
Calls the platform's native value-setting API. Behaviour depends
on the target widget:
* Text fields / text areas: writes the text.
* Combo boxes / dropdowns / <select>: picks the option whose
label or value matches *value*. Prefer this over clicking
the dropdown and then clicking a popup item — picking by name
is one atomic call and avoids popup-click failures on some
toolkits.
* Other editable widgets: whatever their value interface accepts.
Args:
element_id: The element ID (a text field, combo box, etc.).
value: The text or option label to set.
replace: If true, clear the field first and replace all content.
If false (default), insert at the current cursor position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | Yes | ||
| value | Yes | ||
| replace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |