# simulator_adjust

> The MCP tool that steps a stepper, picker, time wheel or other adjustable control on the Team's Simulator up or down.

Source: https://air.build/docs/mcp-tools/simulator_adjust/

`simulator_adjust` sends a control on the Team's running Simulator a number of accessibility increment actions (positive `steps`) or decrement actions (negative `steps`). It works on any control that [simulator_describe_ui](https://air.build/docs/mcp-tools/simulator_describe_ui/) marks `adjustable`, such as a stepper, a picker, a time wheel or a slider. The control decides how big each step is, so `steps` counts actions, not units of the value. A time wheel can also wrap around. The control is named by a [selector](https://air.build/docs/mcp-tools/simulator_find/#selector), never by coordinates, and the selector is always strict: it must match exactly one element. The tool waits up to 10 seconds for it.

The tool reads the value back after each action. It stops early, without retrying and without undoing anything, when the value stops changing (for example at the end of the range), when the control refuses an action, or after about five seconds. It then returns `ok: false` with what it did. That is a result, not an error.

| Read-only | Destructive | Idempotent |
| --- | --- | --- |
| No | No | No |

## Inputs

| Input | Type | Required | Default | What it does |
| --- | --- | --- | --- | --- |
| `teamId` | string (UUID) | Yes | — | The Team, from [list_teams](https://air.build/docs/mcp-tools/list_teams/) |
| `simulator` | string | No | The Team's default device | Which device, by `id` from [list_simulators](https://air.build/docs/mcp-tools/list_simulators/#result) |
| `text`, `id`, `value`, `role`, `nodeId`, `exact`, `strict` | see [Selectors](https://air.build/docs/mcp-tools/simulator_find/#selector) | At least one of the first five | — | The control. `strict` is always on |
| `steps` | integer, -1000 to 1000, not 0 | Yes | — | How many actions: positive steps up, negative steps down |

## Result

| Field | What |
| --- | --- |
| `ok` | `true` when every step was made; `false` when it stopped early |
| `requestedSteps` | The `steps` asked for |
| `completedActions` | How many actions were sent |
| `before` | The control as it was before the first action |
| `after` | The control as it was after the last one |
| `error` | Why it stopped; only when `ok` is `false` |

```json
{ "ok": true, "requestedSteps": 3, "completedActions": 3,
  "before": { "label": "Hours", "value": "7", "role": "AXStepper" },
  "after":  { "label": "Hours", "value": "10", "role": "AXStepper" } }
```

## Errors

| Message | When | What to do |
| --- | --- | --- |
| steps must be a non-zero whole number. | `steps` is missing, 0 or not a whole number | Send a signed whole number |
| element is disabled or does not advertise AXIncrement | The element is dimmed or cannot be stepped up (`AXDecrement` when stepping down) | Check `adjustable` and `adjustmentActions` in [simulator_describe_ui](https://air.build/docs/mcp-tools/simulator_describe_ui/) |
| adjust target center is off-screen | The control's center is off screen | Bring it into view with [simulator_scroll_to](https://air.build/docs/mcp-tools/simulator_scroll_to/) |
| ambiguous selector _selector_: _n_ usable matches; add an id, role, or value filter | Several elements match | Name it by `id` or `nodeId` |
| no usable element matching _selector_ within 10s | Nothing usable matched within 10 seconds | Check with [simulator_find](https://air.build/docs/mcp-tools/simulator_find/) |

Plus the other [selector errors](https://air.build/docs/mcp-tools/simulator_find/#selector), and the errors every Simulator tool can return: see [start_simulator](https://air.build/docs/mcp-tools/start_simulator/#device-errors).

## Example

```json
{"name": "simulator_adjust", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "id": "hours", "steps": 3}}
```
