set_value
Write a value directly into a text field through macOS accessibility, including background apps, without using the keyboard or clipboard.
Instructions
Set a text field's value directly through accessibility. Works in background apps and with any language, without touching the keyboard or clipboard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Element id from inspect, e.g. "1.3.2" | |
| app | No | Process name, e.g. "TextEdit". Defaults to the frontmost app. Works on background apps. | |
| role | No | Role to match, e.g. "AXButton". Alone, it must match exactly one element. | |
| label | No | Element name/description/value to match (used when id is not given) | |
| value | Yes |