ios_set_value
Set switches, sliders, and picker wheels to a specified value, checking current state first to avoid unintended toggles. Works for on/off, percentages, or exact wheel options.
Instructions
Set a switch, slider, or picker wheel to a value.
'on' or 'off' for a switch, a percentage such as '40%' or a fraction for a slider, and the option spelled the way the wheel spells it for a picker. A wheel is turned a row at a time and read back after each one, so an option it does not contain fails listing what it does.
Prefer this over tapping a switch: it checks the current state first, so asking for 'on' when it is already on does nothing rather than turning it off.
Steppers and segmented controls are not set this way. iOS reports their parts and the digest shows them, so tap 'Increment', 'Decrement', or the segment by its own label.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | A ref from the last observation, such as 'e7'. Preferred. | |
| value | Yes | 'on'/'off' for switches, otherwise the value. | |
| target | No | Plain description of the element, e.g. 'the Send button'. Used if no ref. | |
| approve | No | Signature returned by a previous action_requires_approval error. | |
| idem_key | No | Optional key making a retry a no-op. Pass the same key when repeating an action you are unsure completed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||