# simulator_swipe

> The MCP tool that swipes (flicks) across the Team's Simulator's screen from one point to another.

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

`simulator_swipe` swipes one finger across the Team's running Simulator from one point to another, in [screen coordinates](https://air.build/docs/mcp-tools/simulator_screen/#coordinates), like a flick: a list keeps moving after the finger lifts. It takes coordinates only, not elements. For a controlled move that does not fling (reordering, pulling a sheet, a custom slider) use [simulator_drag](https://air.build/docs/mcp-tools/simulator_drag/); to bring an element into view use [simulator_scroll_to](https://air.build/docs/mcp-tools/simulator_scroll_to/).

| 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) |
| `startX` | number, -1000000 to 1000000 | Yes | — | Where the finger lands, across |
| `startY` | number, -1000000 to 1000000 | Yes | — | Where the finger lands, down |
| `endX` | number, -1000000 to 1000000 | Yes | — | Where it lifts, across |
| `endY` | number, -1000000 to 1000000 | Yes | — | Where it lifts, down |
| `duration` | number, 0 to 60 | No | The device's own speed | Seconds the swipe takes; longer is slower |
| `display` | string | No | The display in use | On a foldable: the display's `screenId` from [simulator_displays](https://air.build/docs/mcp-tools/simulator_displays/) |

## Result

| Field | What |
| --- | --- |
| `ok` | `true` |

```json
{ "ok": true }
```

## Errors

| Message | When | What to do |
| --- | --- | --- |
| startX is required. | A coordinate is missing (likewise `startY`, `endX`, `endY`) | Send all four |
| startX must be a number from -1000000 to 1000000. | A coordinate is not a number or out of range | Send a number |

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

## Example

```json
{"name": "simulator_swipe", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "startX": 200, "startY": 700, "endX": 200, "endY": 200}}
```
