> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# swipe

> Reference for the `swipe` schema.

## Referenced In

* [Markup definition](/reference/schemas/markup-definition)
* [test](/reference/schemas/test)
* [Resolved context](/reference/schemas/resolved-context)

## Fields

| Field | Type                                                                                                                                                               | Description                                                                                                                                                                                                                        | Default |
| :---- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------ |
| swipe | one of: - string - object([Swipe (directional)](/reference/schemas/swipe-directional)) - object([Swipe (point-to-point)](/reference/schemas/swipe-point-to-point)) | Required. Swipe (or scroll) a surface in a direction or between two points. The direction is the virtual finger's motion: swiping up moves content up, revealing content further down the page. Works on app and browser surfaces. | —       |

## Examples

```json
{
  "swipe": "left"
}
```

```json
{
  "swipe": {
    "direction": "up",
    "distance": 0.8,
    "surface": {
      "app": "myapp"
    }
  }
}
```

```json
{
  "swipe": {
    "from": {
      "x": 200,
      "y": 600
    },
    "to": {
      "x": 200,
      "y": 200
    },
    "duration": 250
  }
}
```