> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/automate-en/action-guide/phone-action/scroll.md).

# Scroll

Scroll the device screen in a direction or according to the coordinates of the start and end points.

Scroll is the action of scrolling the screen of a mobile device. It supports two types: scrolling in a fixed direction, or swiping from one point to another according to coordinates.

🎥 See more tutorial videos: [Here](https://youtu.be/WhRCpYVeagA).

#### Explanation of configuration parameters:

* Scroll type: Type of scroll:
  * `By direction`: scroll in a fixed direction.
  * `By points`: swipe from the start point to the end point according to coordinates.
* Direction: (when selecting By direction) Scroll direction — `Up`, `Down`, `Left`, `Right`.
* Start position (x,y): (when selecting By points) Coordinates of the starting swipe point, for example `500,1500`.
* End position (x,y): (when selecting By points) Coordinates of the ending swipe point, for example `500,500`.
* Duration (ms): (when selecting By points) The time to perform the swipe measured in milliseconds; the larger the number, the slower the swipe.

<figure><img src="https://2961903581-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpIRrmOLZkhHBXdAiidIw%2Fuploads%2Fgit-blob-989165525e60ac35ac4ea5b273bf47f6f17f46bb%2Fpx-02.png?alt=media" alt=""><figcaption><p>Scroll by direction</p></figcaption></figure>

<figure><img src="https://2961903581-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpIRrmOLZkhHBXdAiidIw%2Fuploads%2Fgit-blob-ea3ac5c6c36646122c7bcd88f83a3da1f0555b83%2Fpx-02b.png?alt=media" alt=""><figcaption><p>Scroll by points</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.gpmautomate.com/automate-en/action-guide/phone-action/scroll.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
