adjust_control
Adjust a numeric control value on mobile apps with verification to ensure the target is reached within tolerance.
Instructions
Purpose: Adjust a numeric control value with verification.
This is the initial adjustable-control surface for slider-like controls and other controls that expose a numeric value or value_range.
Inputs:
exactly one of selector or element_id
property (defaults to "value")
targetValue
tolerance (optional; discrete default is 0, continuous default is max(step / 2, 1% of range) when omitted)
maxAttempts (optional; defaults to 5)
platform/deviceId (optional)
Output Structure:
action_id, timestamp (ISO 8601), action_type
lifecycle_state: post-dispatch lifecycle state (pending_verification or failed)
source_module: runtime source of the action envelope
target_state / actual_state / within_tolerance / converged / attempts / adjustment_mode
target.selector = original selector or element handle
success = true when the control converges within tolerance
Verification Guidance:
Prefer direct platform adjustment when the runtime exposes it; then verified increment/decrement actions; use coordinate fallback only as degraded mode
Use expect_state for the control value readback
Do not use derived semantic metadata as proof of success
Failure Handling:
ELEMENT_NOT_FOUND → re-resolve the control
ELEMENT_NOT_INTERACTABLE → the control cannot be adjusted through the current runtime
CONTROL_CONVERGENCE_FAILED → the control did not converge within bounded retries or the requested value is out of range
UNKNOWN → capture a snapshot and stop
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deviceId | No | Optional device serial/udid | |
| platform | No | Optional platform override | |
| property | No | Readable numeric state property to adjust. | value |
| selector | No | ||
| tolerance | No | Accepted numeric tolerance around the target value. Defaults are derived from the readable control domain. | |
| element_id | No | Optional previously resolved element identifier. | |
| maxAttempts | No | Maximum adjustment attempts. | |
| targetValue | Yes | Target numeric value. |