set
Set a native range input value by label
Set the value of a native <input type="range"> by label.
Syntax
When I set "<label>" to "<value>" [by …]Qualifiers
| Qualifier | Role | Example |
|---|---|---|
to | Numeric (or string) value to set | set "Volume" to "75" |
by … | Optional find hint | set "volume" by id to "75" |
Requirements
| Item | Contract |
|---|---|
| Element / control shape | Native <input type="range"> only (checked after resolve) |
| How the label binds | range aria-label → label + range → range id → range name |
| Qualifiers that change resolve | to = value payload; optional by … |
| Platform | Web only (v1) |
| Wrong shape → use instead | Other inputs → fill. Custom slider widgets → not supported |
When it fails
not a native range input— resolved element is nottype=range.- Glob labels are not supported on
set.
See also UI contracts.
Examples
When I set "Volume" to "75"Notes
- Native range inputs only in v1. Custom slider widgets are not supported yet.
- Non-range elements fail with a clear error.
- Uses action resolve auto-wait (~30s).
- Web only for v1.